System documentation of the GNU Image-Finding Tool

Classes | Public Member Functions | Protected Attributes | List of all members
CSocket Class Reference

This class takes a unary function. More...

#include <CSocket.h>

Inheritance diagram for CSocket:
CDomainSocket CTCPSocket

Classes

class  CServeFunction
 this is the function that's called when serving More...

Public Member Functions

 CSocket ()
 constructor
 ~CSocket ()
 destroy this: close the socket
int getSocketDescriptor () const
 get the descriptor of the socket
void setServeFunction (CServeFunction *inServeFunction)
 Serve from the socket that accepted.
virtual bool acceptAndServe ()=0
 accept this socket and serve
virtual void serveStream (int)
 serve to this socket
virtual operator bool () const

Protected Attributes

bool mIsInitialized
 has this been initialized ?
int mSocketDescriptor
 int
CServeFunctionmServeFunction

Detailed Description

This class takes a unary function.

See Also
: CMultiServer

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

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen