#include <TcpSocket.h>
Inheritance diagram for activemq::network::TcpSocket:
Public Member Functions | |
TcpSocket () | |
TcpSocket (SocketHandle socketHandle) | |
virtual | ~TcpSocket () |
SocketHandle | getSocketHandle () |
virtual void | connect (const char *host, const int port) throw ( SocketException ) |
virtual bool | isConnected () const |
virtual io::InputStream * | getInputStream () |
virtual io::OutputStream * | getOutputStream () |
virtual int | getSoLinger () const throw ( SocketException ) |
virtual void | setSoLinger (const int linger) throw ( SocketException ) |
virtual bool | getKeepAlive () const throw ( SocketException ) |
virtual void | setKeepAlive (const bool keepAlive) throw ( SocketException ) |
virtual int | getReceiveBufferSize () const throw ( SocketException ) |
virtual void | setReceiveBufferSize (const int size) throw ( SocketException ) |
virtual bool | getReuseAddress () const throw ( SocketException ) |
virtual void | setReuseAddress (const bool reuse) throw ( SocketException ) |
virtual int | getSendBufferSize () const throw ( SocketException ) |
virtual void | setSendBufferSize (const int size) throw ( SocketException ) |
virtual int | getSoTimeout () const throw ( SocketException ) |
virtual void | setSoTimeout (const int timeout) throw (SocketException) |
virtual void | close () throw ( cms::CMSException ) |
Static Protected Attributes | |
static StaticSocketInitializer | staticSocketInitializer |
Private Attributes | |
SocketHandle | socketHandle |
SocketInputStream * | inputStream |
SocketOutputStream * | outputStream |
Classes | |
class | StaticSocketInitializer |
|
Construct a non-connected socket. |
|
Construct a connected or bound socket based on given socket handle.
|
|
Destruct. Releases the socket handle but not gracefully shut down the connection. |
|
Closes this object and deallocates the appropriate resources.
|
|
Connects to the specified destination. Closes this socket if connected to another destination.
Implements activemq::network::Socket. |
|
Gets the InputStream for this socket.
Implements activemq::network::Socket. |
|
Gets the keep alive flag.
Implements activemq::network::Socket. |
|
Gets the OutputStream for this socket.
Implements activemq::network::Socket. |
|
Gets the receive buffer size.
Implements activemq::network::Socket. |
|
Gets the reuse address flag.
Implements activemq::network::Socket. |
|
Gets the send buffer size.
Implements activemq::network::Socket. |
|
Gets the handle for the socket.
|
|
Gets the linger time.
Implements activemq::network::Socket. |
|
Gets the timeout for socket operations.
Implements activemq::network::Socket. |
|
Indicates whether or not this socket is connected to a destination.
Implements activemq::network::Socket. |
|
Enables/disables the keep alive flag.
Implements activemq::network::Socket. |
|
Sets the recieve buffer size.
Implements activemq::network::Socket. |
|
Sets the reuse address flag.
Implements activemq::network::Socket. |
|
Sets the send buffer size.
Implements activemq::network::Socket. |
|
Sets the linger time.
Implements activemq::network::Socket. |
|
Sets the timeout for socket operations.
Implements activemq::network::Socket. |
|
The input stream for reading this socket. |
|
The output stream for writing to this socket. |
|
The handle for this socket. |
|
|