#include <BufferedSocket.h>
Inheritance diagram for activemq::network::BufferedSocket:
Public Member Functions | |
BufferedSocket (Socket *socket, unsigned int inputBufferSize=1000, unsigned int outputBufferSize=1000, bool own=true) | |
virtual | ~BufferedSocket (void) |
virtual void | connect (const char *host, const int port) throw ( SocketException ) |
virtual void | close () throw ( cms::CMSException ) |
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 ) |
Private Attributes | |
Socket * | socket |
bool | own |
io::BufferedInputStream * | inputStream |
io::BufferedOutputStream * | outputStream |
unsigned int | inputBufferSize |
unsigned int | outputBufferSize |
Socket
derived object and provides Buffered input and Output Streams to improce the efficiency of the reads and writes.
|
Constructs a new Buffered socket object
|
|
|
|
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 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. |
|
|
|
|
|
|
|
|
|
|
|
|