Inheritance diagram for SocketImpl:

Public Member Functions | |
| void | accept (SocketImplPtr s) |
| Accepts a connection. | |
| int | available () |
| Returns the number of bytes that can be read from this socket without blocking. | |
| void | bind (InetAddress host, int port) |
| void | close () |
| void | connect (InetAddress address, int port) |
| void | connect (const String &host, int port) |
| void | create (bool stream) |
| int | getFileDescriptor () const |
| InetAddress | getInetAddress () const |
| int | getLocalPort () const |
| int | getPort () const |
| void | listen (int backlog) |
| String | toString () const |
| int | getSoTimeout () const |
| void | setSoTimeout (int timeout) |
Protected Attributes | |
| InetAddress | address |
| int | fd |
| int | localport |
| int | port |
This implementation does not implement any security check.
|
|
Accepts a connection.
|
|
|
Returns the number of bytes that can be read from this socket without blocking.
|
|
||||||||||||
|
Binds this socket to the specified port number on the specified host.
|
|
|
Closes this socket. |
|
||||||||||||
|
Connects this socket to the specified port on the named host. |
|
||||||||||||
|
Connects this socket to the specified port number on the specified host. |
|
|
Creates either a stream or a datagram socket. |
|
|
Returns the value of this socket's fd field. |
|
|
Returns the value of this socket's address field. |
|
|
Returns the value of this socket's localport field. |
|
|
Returns the value of this socket's port field. |
|
|
Retrive setting for SO_TIMEOUT. |
|
|
Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument. |
|
|
Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. |
|
|
Returns the address and port of this socket as a String. |
|
|
The IP address of the remote end of this socket. |
|
|
The file descriptor object for this socket. |
|
|
The local port number to which this socket is connected. |
|
|
The port number on the remote host to which this socket is connected. |
1.3.9.1