For internal use only.
senf::SocketBody is the extended (relatively to senf::FileBody) body of senf::SocketHandle. Every SocketHandle must have a SocketBody as it's body (and not a simple FileBody). The casting and conversion operators defined will ensure this if used properly. If this invariant is violated, your Program will probably crash.
Definition at line 99 of file SocketHandle.ih.
Public Types |
|
typedef boost::intrusive_ptr < SocketBody > |
ptr |
Public Member Functions |
|
SocketProtocol & | protocol () const |
Access the protocol instance. |
|
bool | isServer () |
Check socket type. |
|
void | state (SocketStateMap &map, unsigned lod) |
std::auto_ptr< SocketBody > | clone (bool isServer) const |
std::auto_ptr< SocketBody > | clone (int fd, bool isServer) const |
Structors and default members |
|
SocketBody (bool isServer) | |
SocketBody (bool isServer, int fd) |
typedef boost::intrusive_ptr<SocketBody> senf::SocketBody:: | ||||
ptr | ||||
Reimplemented from senf::FileBody.
Definition at line 106 of file SocketHandle.ih.
senf::SocketBody:: | ||||
SocketBody | ( | bool | isServer | ) |
isServer |
true , if this socket is a server socket, false otherwise |
Definition at line 35 of file SocketHandle.cci.
senf::SocketBody:: | ||||
SocketBody | ( | bool | isServer, | |
int | fd | ) | ||
isServer |
true , if this socket is a server socket, false otherwise |
|
fd | socket file descriptor |
Definition at line 39 of file SocketHandle.cci.
std::auto_ptr< senf::SocketBody > senf::SocketBody:: | ||||
clone | ( | int | fd, | |
bool | isServer | ) | ||
Definition at line 60 of file SocketHandle.cci.
std::auto_ptr< senf::SocketBody > senf::SocketBody:: | ||||
clone | ( | bool | isServer | ) |
Definition at line 54 of file SocketHandle.cci.
bool senf::SocketBody:: | ||||
isServer | () | |||
Check socket type.
true
, if this is a server socket, false
otherwiseDefinition at line 49 of file SocketHandle.cci.
senf::SocketProtocol & senf::SocketBody:: | ||||
protocol | () | |||
Access the protocol instance.
Definition at line 43 of file SocketHandle.cci.
void senf::SocketBody:: | ||||
state | ( | SocketStateMap & | map, | |
unsigned | lod | ) | ||
Definition at line 41 of file SocketHandle.cc.