|
Public Member Functions |
| | SocketImpl () |
| virtual | ~SocketImpl () |
| virtual bool | accept (IN(RSocketImpl) s, int timeOut=-1)=0 |
| | Accepts a connection.
|
| virtual int | available ()=0 |
| | Returns the number of bytes that can be read from this socket without blocking.
|
| virtual void | bind (IN(RInetAddress) host, int port)=0 |
| | Binds this socket to the specified port number on the specified host.
|
| virtual void | close ()=0 |
| | Closes this socket.
|
| virtual bool | connect (IN(RInetAddress) address, int port, int timeOut=-1)=0 |
| | Connects this socket to the specified port number on the specified host.
|
| virtual bool | connect (IN(RString) host, int port, int timeOut=-1)=0 |
| | Connects this socket to the specified port on the named host.
|
| virtual void | create (bool stream)=0 |
| | Creates either a stream or a datagram socket.
|
| ::acdk::io::RFileDescriptor | getFileDescriptor () |
| | Returns the value of this socket's fd field.
|
| virtual RInetAddress | getInetAddress () |
| | Returns the value of this socket's address field.
|
| virtual RReader | getInputStream ()=0 |
| | Returns an input stream for this socket.
|
| virtual int | getLocalPort () |
| | Returns the value of this socket's localport field.
|
| virtual RWriter | getOutputStream ()=0 |
| | Returns an output stream for this socket.
|
| virtual int | getPort () |
| | Returns the value of this socket's port field.
|
| virtual void | listen (int backlog)=0 |
| | Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument.
|
| void | shutdownInput () |
| | Places the input stream for this socket at end of stream.
|
| void | shutdownOutput () |
| | Disables the output stream for this socket.
|
| virtual acdk::lang::Object | getOption (int optID) |
| | from SocketOption
|
| virtual void | setOption (int optID, IN(acdk::lang::Object) value) |
| | Enable/disable the option specified by optID.
|
| RString | toString () |
| | Returns the address and port of this socket as a String.
|
Static Public Member Functions |
| acdk::lang::Object | getSockOption (IN(::acdk::io::RFileDescriptor) fd, int optId) |
| void | setSockOption (IN(::acdk::io::RFileDescriptor) fd, int optID, IN(acdk::lang::Object) value) |
Protected Attributes |
| ::acdk::io::RFileDescriptor | fd |
| | The file descriptor object for this socket.
|
| RInetAddress | address |
| | The IP address of the remote end of this socket.
|
| int | port |
| | The port number on the remote host to which this socket is connected.
|
| int | localport |
| | The local port number to which this socket is connected The is on local format (not network format!).
|
Friends |
| class | Socket |
| class | ServerSocket |