#include <SocketInputStream.h>
Inheritance diagram for activemq::network::SocketInputStream:
Public Member Functions | |
SocketInputStream (Socket::SocketHandle socket) | |
virtual | ~SocketInputStream () |
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 int | available () const |
virtual unsigned char | read () throw ( io::IOException ) |
virtual int | read (unsigned char *buffer, const int bufferSize) throw (io::IOException) |
virtual void | close () throw ( cms::CMSException ) |
Private Attributes | |
Socket::SocketHandle | socket |
concurrent::Mutex | mutex |
bool | debug |
|
Constructor.
|
|
Destructor. |
|
Polls instantaneously to see if data is available on the socket.
Implements activemq::io::InputStream. |
|
Close - does nothing. It is the responsibility of the owner of the socket object to close it.
|
|
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. |
|
Reads an array of bytes from the buffer.
Implements activemq::io::InputStream. |
|
Reads a single byte from the buffer.
Implements activemq::io::InputStream. |
|
Enables socket level output of the recieved 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. |
|
|
|
|
|
|