#include <Socket.h>
Inheritance diagram for activemq::network::Socket:
Public Types | |
typedef SOCKET | SocketHandle |
Public Member Functions | |
virtual | ~Socket (void) |
virtual void | connect (const char *host, const int port)=0 throw (SocketException) |
virtual bool | isConnected () const =0 |
virtual io::InputStream * | getInputStream ()=0 |
virtual io::OutputStream * | getOutputStream ()=0 |
virtual int | getSoLinger () const =0 throw ( SocketException ) |
virtual void | setSoLinger (const int linger)=0 throw ( SocketException ) |
virtual bool | getKeepAlive () const =0 throw ( SocketException ) |
virtual void | setKeepAlive (const bool keepAlive)=0 throw ( SocketException ) |
virtual int | getReceiveBufferSize () const =0 throw ( SocketException ) |
virtual void | setReceiveBufferSize (const int size)=0 throw ( SocketException ) |
virtual bool | getReuseAddress () const =0 throw ( SocketException ) |
virtual void | setReuseAddress (const bool reuse)=0 throw ( SocketException ) |
virtual int | getSendBufferSize () const =0 throw ( SocketException ) |
virtual void | setSendBufferSize (const int size)=0 throw ( SocketException ) |
virtual int | getSoTimeout () const =0 throw ( SocketException ) |
virtual void | setSoTimeout (const int timeout)=0 throw ( SocketException ) |
Static Public Attributes | |
static const SocketHandle | INVALID_SOCKET_HANDLE = (SocketHandle) -1 |
|
|
|
|
|
Connects to the specified destination. Closes this socket if connected to another destination.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the InputStream for this socket.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the keep alive flag.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the OutputStream for this socket.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the receive buffer size.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the reuse address flag.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the send buffer size.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the linger time.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Gets the timeout for socket operations.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Indicates whether or not this socket is connected to a destination.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Enables/disables the keep alive flag.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Sets the recieve buffer size.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Sets the reuse address flag.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Sets the send buffer size.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Sets the linger time.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Sets the timeout for socket operations.
Implemented in activemq::network::BufferedSocket, and activemq::network::TcpSocket. |
|
Defines a constant for an invalid socket handle. |