#include <SocketOutputStream.h>
Inheritance diagram for activemq::network::SocketOutputStream:
Public Member Functions | |
SocketOutputStream (Socket::SocketHandle socket) | |
virtual | ~SocketOutputStream () |
virtual void | setDebug (const bool debug) |
virtual void | lock () throw ( exceptions::ActiveMQException ) |
virtual void | unlock () throw ( exceptions::ActiveMQException ) |
virtual void | wait () throw ( exceptions::ActiveMQException ) |
virtual void | wait (unsigned long millisecs) throw ( exceptions::ActiveMQException ) |
virtual void | notify () throw ( exceptions::ActiveMQException ) |
virtual void | notifyAll () throw ( exceptions::ActiveMQException ) |
virtual void | write (const unsigned char c) throw ( io::IOException ) |
virtual void | write (const unsigned char *buffer, const int len) throw ( io::IOException ) |
virtual void | flush () throw ( io::IOException ) |
virtual void | close () throw ( cms::CMSException ) |
Private Attributes | |
Socket::SocketHandle | socket |
concurrent::Mutex | mutex |
bool | debug |
|
Constructor.
|
|
|
|
Close - does nothing. It is the responsibility of the owner of the socket object to close it.
|
|
Flush - does nothing.
Implements activemq::io::OutputStream. |
|
Locks the object.
Implements activemq::concurrent::Synchronizable. |
|
Signals a waiter on this object that it can now wake up and continue. Must have this object locked before calling.
Implements activemq::concurrent::Synchronizable. |
|
Signals the waiters on this object that it can now wake up and continue. Must have this object locked before calling. Implements activemq::concurrent::Synchronizable. |
|
Enables Debugging of Socket Data
|
|
Unlocks the object.
Implements activemq::concurrent::Synchronizable. |
|
Waits on a signal from this object, which is generated by a call to Notify. Must have this object locked before calling. This wait will timeout after the specified time interval.
Implements activemq::concurrent::Synchronizable. |
|
Waits on a signal from this object, which is generated by a call to Notify. Must have this object locked before calling.
Implements activemq::concurrent::Synchronizable. |
|
Writes an array of bytes to the output stream.
Implements activemq::io::OutputStream. |
|
Writes a single byte to the output stream.
Implements activemq::io::OutputStream. |
|
|
|
|
|
|