#include <SocketImpl.h>
Inheritance diagram for acdk::net::SocketImpl:
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 |
|
|
|
|
|
Accepts a connection.
Implemented in acdk::net::TCPSocket. |
|
Returns the number of bytes that can be read from this socket without blocking.
Implemented in acdk::net::TCPSocket. |
|
Binds this socket to the specified port number on the specified host.
Implemented in acdk::net::TCPSocket. |
|
Closes this socket.
Implemented in acdk::net::TCPSocket. |
|
Connects this socket to the specified port on the named host.
Implemented in acdk::net::TCPSocket. |
|
Connects this socket to the specified port number on the specified host.
Implemented in acdk::net::TCPSocket. |
|
Creates either a stream or a datagram socket.
Implemented in acdk::net::TCPSocket. |
|
Returns the value of this socket's fd field.
|
|
Returns the value of this socket's address field.
Reimplemented in acdk::net::TCPSocket. |
|
Returns an input stream for this socket.
Implemented in acdk::net::TCPSocket. |
|
Returns the value of this socket's localport field.
Reimplemented in acdk::net::TCPSocket. |
|
from SocketOption
Implements acdk::net::SocketOptions. |
|
Returns an output stream for this socket.
Implemented in acdk::net::TCPSocket. |
|
Returns the value of this socket's port field.
|
|
|
|
Sets the maximum queue length for incoming connection indications (a request to connect) to the count argument.
Implemented in acdk::net::TCPSocket. |
|
Enable/disable the option specified by optID.
Implements acdk::net::SocketOptions. |
|
|
|
Places the input stream for this socket at end of stream.
|
|
Disables the output stream for this socket.
|
|
Returns the address and port of this socket as a String.
Reimplemented from acdk::lang::Object. |
|
|
|
|
|
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 is on local format (not network format!).
|
|
The port number on the remote host to which this socket is connected. The is on local format (not network format!) |