hnfwd.h File Reference


Detailed Description

Forward declarations for HydraNode Core classes.

Definition in file hnfwd.h.

#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>

Include dependency graph for hnfwd.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  Socket
namespace  Detail

Typedefs

typedef boost::shared_ptr<
UsedRange > 
UsedRangePtr
typedef boost::shared_ptr<
LockedRange > 
LockedRangePtr
typedef boost::shared_ptr<
Search
SearchPtr
typedef boost::shared_ptr<
SearchResult
SearchResultPtr
typedef boost::function< void(SearchPtr)> SearchHandler
typedef boost::function< bool(const std::string &)> LinkHandler
typedef boost::shared_ptr<
ThreadWork
ThreadWorkPtr
typedef boost::shared_ptr<
HashWork
HashWorkPtr

Enumerations

enum  SocketEvent {
  SOCK_CONNECTED = 1, SOCK_CONNFAILED, SOCK_ACCEPT, SOCK_READ,
  SOCK_WRITE, SOCK_LOST, SOCK_ERR, SOCK_TIMEOUT
}
 Various socket events passed to event handler. More...
enum  FileType {
  FT_UNKNOWN = 0, FT_ARCHIVE = 1, FT_VIDEO, FT_AUDIO,
  FT_IMAGE, FT_DOCUMENT, FT_PROGRAM, FT_CDIMAGE
}
 Various file types. More...
enum  HashEvent { HASH_COMPLETE = 1, HASH_VERIFIED = 2, HASH_FAILED = 3, HASH_FATAL_ERROR = 4 }
 Events emitted by HashWork object when the job has been completed by Hasher. More...

Typedef Documentation

typedef boost::shared_ptr<HashWork> HashWorkPtr
 

Definition at line 105 of file hnfwd.h.

typedef boost::function<bool (const std::string&)> LinkHandler
 

Definition at line 75 of file hnfwd.h.

typedef boost::shared_ptr<LockedRange> Detail::LockedRangePtr
 

Definition at line 66 of file hnfwd.h.

typedef boost::function<void (SearchPtr)> SearchHandler
 

Definition at line 74 of file hnfwd.h.

typedef boost::shared_ptr<Search> SearchPtr
 

Definition at line 72 of file hnfwd.h.

typedef boost::shared_ptr<SearchResult> SearchResultPtr
 

Definition at line 73 of file hnfwd.h.

typedef boost::shared_ptr<ThreadWork> ThreadWorkPtr
 

Definition at line 104 of file hnfwd.h.

typedef boost::shared_ptr<UsedRange > Detail::UsedRangePtr
 

Definition at line 65 of file hnfwd.h.


Enumeration Type Documentation

enum FileType
 

Various file types.

Enumeration values:
FT_UNKNOWN  Unknown.
FT_ARCHIVE  zip/arj/rar/gz/bz2
FT_VIDEO  avi/mpeg/mpg/wmv
FT_AUDIO  mp3/mpc/ogg
FT_IMAGE  png/gif/jpg/bmp
FT_DOCUMENT  txt/doc/kwd/sxw/rtf
FT_PROGRAM  exe/com/bat/sh
FT_CDIMAGE  iso/bin/cue/nrg

Definition at line 81 of file hnfwd.h.

enum HashEvent
 

Events emitted by HashWork object when the job has been completed by Hasher.

Enumeration values:
HASH_COMPLETE  Full HashWork has been completed.
HASH_VERIFIED  Range Hash has been verified.
HASH_FAILED  Range Hash verification failed.
HASH_FATAL_ERROR  Fatal error has occoured.

Definition at line 111 of file hnfwd.h.

enum SocketEvent
 

Various socket events passed to event handler.

Enumeration values:
SOCK_CONNECTED  Outgoing connection has been established.
SOCK_CONNFAILED  Outgoing connection failed.
SOCK_ACCEPT  Incoming connection is ready to be accepted.
SOCK_READ  Incoming data is ready for reading in socket.
SOCK_WRITE  Socket became writable.
SOCK_LOST  Socket connection has been lost.
SOCK_ERR  Error has accoured.
SOCK_TIMEOUT  The connection has timed out.

Definition at line 47 of file hnfwd.h.