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

#include <akgnet_socket.hh>

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

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from akg::FileDescriptor
int fileDescriptor
 
int savedErrno
 

Detailed Description

This class represents the sockets in the file descriptor hierarchie. Socket is the base class of the socket hierarchie, which contains also ListenSocket, ServerSocket and ClientSocket

Constructor & Destructor Documentation

akg::Socket::Socket ( )
throw (
)

Default constructor.

Member Function Documentation

bool akg::Socket::createTcpSocket ( )
throw (
)
protected

helper function to initialize this Socket as a TCP/IP socket

SocketAddress akg::Socket::getAddress ( )
throw (
)

Returns the SocketAddress of this socket.

SocketAddress akg::Socket::getPeerAddress ( )
throw (
)

Returns the SocketAddress of the peer. If the Socket is not connected returns the SocketAddress of this socket


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