rasdaman complete source
|
#include <akgnet_socket.hh>
Public Member Functions | |
ServerSocket () throw () | |
Default constructor. More... | |
~ServerSocket () throw () | |
Destructor. More... | |
bool | acceptFrom (ListenSocket &) throw () |
Accepts a pending connection from a ListenSocket. Returns true on succes. More... | |
![]() | |
Socket () throw () | |
Default constructor. More... | |
SocketAddress | getAddress () throw () |
Returns the SocketAddress of this socket. More... | |
SocketAddress | getPeerAddress () throw () |
![]() | |
~FileDescriptor () throw () | |
Destructor, if open, closes the file descriptor. More... | |
int | operator() () throw () |
Returns the OS file descriptor. More... | |
bool | isOpen () throw () |
void | close () throw () |
Closes the descriptor. More... | |
int | getErrno () throw () |
Returns the error number of the last operation. More... | |
int | write (const void *buffer, int count) throw () |
int | read (void *buffer, int count) throw () |
bool | setNonBlocking (bool nonBlocking) throw () |
bool | isNonBlocking () throw () |
Returns true if the descriptors is in non-blocking mode. More... | |
Additional Inherited Members | |
![]() | |
bool | createTcpSocket () throw () |
helper function to initialize this Socket as a TCP/IP socket More... | |
![]() | |
FileDescriptor () throw () | |
Protected constructor. More... | |
void | saveErrno () throw () |
Saves the errno. More... | |
![]() | |
int | fileDescriptor |
int | savedErrno |
ServerSocket - socket for servers, to communicate with clients It opens by accepting a pending connection from a ListenSocket
akg::ServerSocket::ServerSocket | ( | ) | ||
throw | ( | |||
) |
Default constructor.
akg::ServerSocket::~ServerSocket | ( | ) | ||
throw | ( | |||
) |
Destructor.
bool akg::ServerSocket::acceptFrom | ( | ListenSocket & | ) | ||
throw | ( | ||||
) |
Accepts a pending connection from a ListenSocket. Returns true on succes.