namespace Akenti class Socket

A Socket contains a reference count that wraps a SocketImpl object

Inheritance:


Public Methods

Socket (const string& host, int port)
Creates the socket given the host and the port
Socket (SocketImpl* impl = NULL)
Creates the socket given the SocketImpl
virtual ~Socket ()
Decrements the ref_cnt by 1 and when it goes to 0 destroys this object
const string& getHost () const
Returns the host of the remote server
int getPort () const
Returns the port number of the remote server
InputStream& getInputStream () const
Returns any InputStream associated with the socket
OutputStream& getOutputStream () const
OutputStream is valid as long as the socket is valid
void connect ()
Does the connect
void close ()
Does the close
string paramString () const
Returns a string representation for Socket which is used for debugging purposes

Documentation

A Socket contains a reference count that wraps a SocketImpl object. It is used to indirectly access the SockImpl methods.
Socket(const string& host, int port)
Creates the socket given the host and the port.
Parameters:
host - name of the host
port - the port number

Socket(SocketImpl* impl = NULL)
Creates the socket given the SocketImpl.
Parameters:
impl - the socket implementation object

virtual ~Socket()
Decrements the ref_cnt by 1 and when it goes to 0 destroys this object

const string& getHost() const
Returns the host of the remote server.
Returns:
host string
See Also:
getHost()

int getPort() const
Returns the port number of the remote server.
Returns:
port int
See Also:
getPort()

InputStream& getInputStream() const
Returns any InputStream associated with the socket. InputStream is valid as long as the socket is valid.

OutputStream& getOutputStream() const
OutputStream is valid as long as the socket is valid.
See Also:
getOutputStream()

void connect()
Does the connect.
See Also:
doConnect()

void close()
Does the close.
See Also:
doClose

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


Direct child classes:
SSLSocket
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/11/01
See Also:
ref_ptr
SocketImpl

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