|
Public Member Functions |
| virtual | ~Socket () |
| | Socket (bool asStream=true) |
| | Creates an unconnected socket, with the system-default type of SocketImpl.
|
| | Socket (IN(RInetAddress) address, int port, bool asStream=true) |
| | Creates a stream socket and connects it to the specified port number at the specified IP address.
|
| | Socket (IN(RString) host, int port, bool asStream=true) |
| | Creates a stream socket and connects it to the specified port number on the named host.
|
| bool | connect (IN(RInetAddress) address, int port, int timeOut=-1) |
| | connect a unconnected socket.
|
| bool | connect (IN(RString) host, int port, int timeOut=-1) |
| | connect a unconnected socket.
|
| void | close () |
| | Closes this socket.
|
| RInetAddress | getInetAddress () |
| | Returns the address to which the socket is connected.
|
| RReader | getInputStream () |
| | Returns an input stream for this socket.
|
| RReader | getReader () |
| bool | getKeepAlive () |
| | Tests if SO_KEEPALIVE is enabled.
|
| RInetAddress | getLocalAddress () |
| | Gets the local address to which the socket is bound.
|
| int | getLocalPort () |
| | Returns the local port to which this socket is bound.
|
| RWriter | getOutputStream () |
| | Returns an output stream for this socket.
|
| RWriter | getWriter () |
| int | getPort () |
| | Returns the remote port to which this socket is connected.
|
| int | getReceiveBufferSize () |
| | Get value of the SO_RCVBUF option for this socket, that is the buffer size used by the platform for input on the this Socket.
|
| int | getSendBufferSize () |
| | Get value of the SO_SNDBUF option for this socket, that is the buffer size used by the platform for output on the this Socket.
|
| int | getSoLinger () |
| | Returns setting for SO_LINGER.
|
| int | getSoTimeout () |
| | Returns setting for SO_TIMEOUT.
|
| bool | getTcpNoDelay () |
| | Tests if TCP_NODELAY is enabled.
|
| void | setKeepAlive (bool on) |
| | Enable/disable SO_KEEPALIVE.
|
| bool | getReuseAddress () |
| | get SO_REUSEADDR flag
|
| void | setReuseAddress (bool on) |
| | set SO_REUSEADDR flag
|
| void | setReceiveBufferSize (int size) |
| | Sets the SO_RCVBUF option to the specified value for this DatagramSocket.
|
| void | setSendBufferSize (int size) |
| | Sets the SO_SNDBUF option to the specified value for this DatagramSocket.
|
| void | setSoLinger (bool on, int linger) |
| | Enable/disable SO_LINGER with the specified linger time in seconds.
|
| void | setSoTimeout (int timeout) |
| | Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds.
|
| void | setTcpNoDelay (bool on) |
| | Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm).
|
| void | shutdownInput () |
| | Places the input stream for this socket at end of stream.
|
| void | shutdownOutput () |
| | Disables the output stream for this socket.
|
| RString | toString () |
| | Converts this socket to a String.
|
Static Public Member Functions |
| void | setSocketImplFactory (IN(RSocketImplFactory) fac) |
| | Sets the client socket implementation factory for the application.
|
Protected Member Functions |
| | Socket (IN(RSocketImpl) impl) |
| | Creates an unconnected Socket with a user-specified SocketImpl.
|
Static Protected Member Functions |
| void | _init () |
Protected Attributes |
| RSocketImpl | _theSocket |
| bool | _opened |
| bool | _asStream |
Static Protected Attributes |
| bool | _initialised |
| RSocketImplFactory | _theFactory |
| bool | _factorychanged |
Friends |
| class | ServerSocket |
| | Noetig, damit ServerSocket den Konstruktor Socket( RSocketImpl ) benutzen kann.
|