#include <UPIPE_Stream.h>
Inheritance diagram for ACE_UPIPE_Stream:


Public Types | |
| typedef ACE_UPIPE_Addr | PEER_ADDR |
Public Methods | |
| ACE_UPIPE_Stream (void) | |
| virtual | ~ACE_UPIPE_Stream (void) |
| int | close (void) |
| Shut down the UPIPE and release resources. More... | |
| ACE_HANDLE | get_handle (void) const |
| Return the underlying I/O handle. More... | |
| int | send (ACE_Message_Block *mb_p, ACE_Time_Value *timeout=0) |
| Send a message through the message queue. Returns -1 on error, else 0. More... | |
| int | recv (ACE_Message_Block *&mb_p, ACE_Time_Value *timeout=0) |
| Recv a message from the message queue. Returns -1 on error, else 0. More... | |
| ssize_t | send (const char *buffer, size_t n, ACE_Time_Value *timeout=0) |
| Send a buffer of <n> bytes through the message queue. Returns -1 on error, else number of bytes sent. More... | |
| ssize_t | recv (char *buffer, size_t n, ACE_Time_Value *timeout=0) |
| Recv a buffer of upto <n> bytes from the message queue. Returns -1 on error, else number of bytes read. More... | |
| ssize_t | send_n (const char *buffer, size_t n, ACE_Time_Value *timeout=0) |
| Send a buffer of exactly <n> bytes to the message queue. Returns -1 on error, else number of bytes written (which should == n). More... | |
| ssize_t | recv_n (char *buffer, size_t n, ACE_Time_Value *timeout=0) |
| Recv a buffer of exactly <n> bytes from the message queue. Returns -1 on error, else the number of bytes read. More... | |
| int | control (int cmd, void *val) const |
| Perform control operations on the UPIPE_Stream. More... | |
| int | get_remote_addr (ACE_UPIPE_Addr &remote_sap) const |
| Return the remote address we are connected to. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Private Attributes | |
| ACE_Message_Block * | mb_last_ |
| To hold the last ACE_Message_Block read out of the stream. Thus allowing subsequent reads from one ACE_Message_Block. More... | |
| ACE_UPIPE_Addr | remote_addr_ |
| Address of who we are connected to. More... | |
| MT_Stream | stream_ |
| Stream component used by the <UPIPE_Acceptor> and <UPIPE_Connector> to link together two UPIPE_Streams. More... | |
| int | reference_count_ |
| Keep track of whether the sender and receiver have both shut down. More... | |
Friends | |
| class | ACE_UPIPE_Acceptor |
| class | ACE_UPIPE_Connector |
|
|
|
|
|
|
|
|
|
|
|
Shut down the UPIPE and release resources.
Reimplemented from ACE_SPIPE. |
|
||||||||||||
|
Perform control operations on the UPIPE_Stream.
Reimplemented from ACE_IPC_SAP. |
|
|
Dump the state of an object.
Reimplemented from ACE_SPIPE. |
|
|
Return the underlying I/O handle.
Reimplemented from ACE_IPC_SAP. |
|
|
Return the remote address we are connected to.
|
|
||||||||||||||||
|
Recv a buffer of upto <n> bytes from the message queue. Returns -1 on error, else number of bytes read.
|
|
||||||||||||
|
Recv a message from the message queue. Returns -1 on error, else 0.
|
|
||||||||||||||||
|
Recv a buffer of exactly <n> bytes from the message queue. Returns -1 on error, else the number of bytes read.
|
|
||||||||||||||||
|
Send a buffer of <n> bytes through the message queue. Returns -1 on error, else number of bytes sent.
|
|
||||||||||||
|
Send a message through the message queue. Returns -1 on error, else 0.
|
|
||||||||||||||||
|
Send a buffer of exactly <n> bytes to the message queue. Returns -1 on error, else number of bytes written (which should == n).
|
|
|
|
|
|
|
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_SPIPE. |
|
|
To hold the last ACE_Message_Block read out of the stream. Thus allowing subsequent reads from one ACE_Message_Block.
|
|
|
Keep track of whether the sender and receiver have both shut down.
|
|
|
Address of who we are connected to.
|
|
|
Stream component used by the <UPIPE_Acceptor> and <UPIPE_Connector> to link together two UPIPE_Streams.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001