System documentation of the GNU Image-Finding Tool

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CSocket Class Reference

This class takes a unary function. More...

#include <CSocket.h>

Inheritance diagram for CSocket:

CDomainSocket CTCPSocket List of all members.

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