namespace Akenti class ServerSocket

The ServerSocket provides the services needed for socket for the server

Inheritance:


Public Methods

ServerSocket (SocketImpl* impl = NULL)
Creates this object
ServerSocket (int port)
Prepares the server's socket and binds it to port
virtual ~ServerSocket ()
Destroys this object
const string& getHost () const
Returns the host name for the server
int getPort () const
Returns the port number for the server
void bind ()
Does the binding
void listen (int backlog)
Does the listen
Socket accept ()
Does the accept
void close ()
Closes the socket
virtual string paramString () const
Returns a string representation for ServerSocket, which is used debugging purposes

Documentation

The ServerSocket provides the services needed for socket for the server.
ServerSocket(SocketImpl* impl = NULL)
Creates this object
Parameters:
impl - the SocketImpl object

ServerSocket(int port)
Prepares the server's socket and binds it to port
Parameters:
port - the port number for the server
See Also:
getSocketImplFactory()
createSocketImpl()

virtual ~ServerSocket()
Destroys this object

const string& getHost() const
Returns the host name for the server
Returns:
the name of the host
See Also:
getHost()

int getPort() const
Returns the port number for the server
Returns:
the port number
See Also:
getPort()

void bind()
Does the binding
See Also:
doBind()

void listen(int backlog)
Does the listen
Parameters:
backlog - the number of listener/backlog for this server
See Also:
doListen(int backlog)

Socket accept()
Does the accept
See Also:
newInstance()
ret(SocketImpl):

void close()
Closes the socket
See Also:
doClose()

virtual string paramString() const
Returns a string representation for ServerSocket, which is used debugging purposes.
Returns:
debugging info


Direct child classes:
SSLServerSocket
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/11/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de