A SocketImpl object provides the implementation for both server and client socket functions such as set/get the host, set/get the port, do the connect, bind, listen and accept for the socket
![]() | SocketImpl () Constructs this object |
![]() | ~SocketImpl () Destroys this object |
![]() | setHost (const string& host) Sets the host name to host |
![]() | getHost () const Returns the name of the host |
![]() | setPort (int port) Sets the port number to port |
![]() | getPort () const Returns the port number |
![]() | doConnect () Provides the SocketImpl with either a plain Unix socket or a secure socket that has been connected to the host and port associated with the SocketImpl |
![]() | doListen (int backlog) Does a listen call on the encapsulated socket file descriptor |
![]() | doAccept (SocketImpl* impl) Does an accept call on the encapsulated socket IOHandler which references a socket that a listen has been done on and if successful, replaces the SocketImpl IOHandler with one referencing the new socket that is connected to a client |
![]() | doClose () Closes the socket and sets the input and output streams to NULL |
![]() | getInputStream () If the socketImpl already has an input stream, returns it, otherwise it creates a new one and returns it |
![]() | getOutputStream () If the socketImpl already has an output stream, returns it, otherwise it creates a new one and returns it |
![]() | newInstance () Returns a new SocketImpl |
![]() | paramString () const Returns a string representation for SocketImpl which is used for debugging purposes |
![]() | openConnection () Provides the SocketImpl with a new Unix socket which has been connected to the host and the port associated with this SocketImpl |
![]() | bindToAddress () Provides the SocketImpl with a new Unix socket which has been bound to the port associated with the SocketImpl |
![]() | acceptConnection (SocketImpl* impl) Drills down in the SocketImpl to find a Unix socket file descriptor on which it is assumed that listen call has been done, does a Unix accept call on it and returns a new Unix socket file descriptor |
![]() | doGetInputStream () Creates a new SocketInputStream initialized from a new SocketInBuffer attached to the IOHandler associated with the socketImpl |
![]() | doGetOutputStream () Creates a new SocketOutPutStream initialized from a new SocketOutBuffer attached to the IOHandler associated with the socketImpl |
A SocketImpl object provides the implementation for both server and client socket functions such as set/get the host, set/get the port, do the connect, bind, listen and accept for the socket. Contains the host, port, inputstream, outputsream and IOhandler associated with the socket. The IOHandler in turn contains a file descriptor which refers to either a plain Unix socket or a SSLsocket structure.Normally a application will reference these methods thru either a Socket or SSLSocket if it is the client-side of the connection or thru either a ServerSocket or SSLServerSocket if it is the server-side of the connection. Thus client sockets only call doConnect, and server sockets only call doBind, doListen and doAccept.
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