senf::SocketBody Class Reference

SocketHandle referenced body. More...
Inheritance diagram for senf::SocketBody:
Inheritance graph
[legend]

List of all members.


Detailed Description

SocketHandle referenced body.

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)

Member Typedef Documentation

typedef boost::intrusive_ptr<SocketBody> senf::SocketBody::
ptr

Reimplemented from senf::FileBody.

Definition at line 106 of file SocketHandle.ih.


Constructor & Destructor Documentation

senf::SocketBody::
SocketBody ( bool  isServer )
Parameters:
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 )
Parameters:
isServer  true, if this socket is a server socket, false otherwise
fd  socket file descriptor

Definition at line 39 of file SocketHandle.cci.


Member Function Documentation

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.

Returns:
true, if this is a server socket, false otherwise

Definition 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.


The documentation for this class was generated from the following files: