rasdaman complete source
Public Member Functions | List of all members
akg::ListenSocket Class Reference

#include <akgnet_socket.hh>

Inheritance diagram for akg::ListenSocket:
akg::Socket akg::FileDescriptor

Public Member Functions

 ListenSocket () throw ()
 Default constructor. More...
 
 ~ListenSocket () throw ()
 Destructor, closes, indirectly, the socket. More...
 
bool open (int port) throw ()
 Opens the listen socket. Returns true if succes. More...
 
void setQueueSize (int newSize) throw ()
 
int getQueueSize () throw ()
 Returns the OS queue size for this socket. More...
 
- Public Member Functions inherited from akg::Socket
 Socket () throw ()
 Default constructor. More...
 
SocketAddress getAddress () throw ()
 Returns the SocketAddress of this socket. More...
 
SocketAddress getPeerAddress () throw ()
 
- Public Member Functions inherited from akg::FileDescriptor
 ~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

- Protected Member Functions inherited from akg::Socket
bool createTcpSocket () throw ()
 helper function to initialize this Socket as a TCP/IP socket More...
 
- Protected Member Functions inherited from akg::FileDescriptor
 FileDescriptor () throw ()
 Protected constructor. More...
 
void saveErrno () throw ()
 Saves the errno. More...
 
- Protected Attributes inherited from akg::FileDescriptor
int fileDescriptor
 
int savedErrno
 

Detailed Description

ListenSocket - socket for servers, to listen for clients

Constructor & Destructor Documentation

akg::ListenSocket::ListenSocket ( )
throw (
)

Default constructor.

akg::ListenSocket::~ListenSocket ( )
throw (
)

Destructor, closes, indirectly, the socket.

Member Function Documentation

int akg::ListenSocket::getQueueSize ( )
throw (
)

Returns the OS queue size for this socket.

bool akg::ListenSocket::open ( int  port)
throw (
)

Opens the listen socket. Returns true if succes.

void akg::ListenSocket::setQueueSize ( int  newSize)
throw (
)

Sets the OS queue size for this socket. Maximal size is SOMAXCONN Assert: newSize > 0


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