|
| ACE_SPIPE_Stream (void) |
| Default constructor. More...
|
|
int | get_remote_addr (ACE_SPIPE_Addr &remote_sap) const |
| Obtain the address of whom we are connected with. More...
|
|
int | send_handle (ACE_HANDLE handle) const |
| Send an open FD to another process. More...
|
|
int | recv_handle (ACE_HANDLE &handle) const |
| Recv an open FD from another process. More...
|
|
int | recv_handle (strrecvfd &recvfd) const |
| Recv an open FD from another process. More...
|
|
ssize_t | send_n (const void *buf, size_t len) const |
| Send len bytes, keep trying until len are sent. More...
|
|
ssize_t | recv_n (void *buf, size_t len) const |
| Recv len bytes, keep trying until len are received. More...
|
|
ssize_t | send (const void *buf, size_t len) const |
| Send bytes via STREAM pipes using "band" mode. More...
|
|
ssize_t | recv (void *buf, size_t len) const |
| Recv bytes via STREAM pipes using "band" mode. More...
|
|
ssize_t | send (const ACE_Str_Buf *cntl, const ACE_Str_Buf *data, int flags=0) const |
| Send cntl and data via STREAM pipes. More...
|
|
ssize_t | recv (ACE_Str_Buf *cntl, ACE_Str_Buf *data, int *flags) const |
| Recv cntl and data via STREAM pipes. More...
|
|
ssize_t | send (const ACE_Str_Buf *cntl, const ACE_Str_Buf *data, int band, int flags) const |
| Send bytes via STREAM pipes using "band" mode. More...
|
|
ssize_t | recv (ACE_Str_Buf *cntl, ACE_Str_Buf *data, int *band, int *flags) const |
| Recv bytes via STREAM pipes using "band" mode. More...
|
|
ssize_t | send (const iovec iov[], int len) const |
| Send iovecs via the OS "gather-write" operation. More...
|
|
ssize_t | recv (iovec iov[], int len) const |
| Recv iovecs via the OS "scatter-read" operation. More...
|
|
ssize_t | send (size_t len,...) const |
|
ssize_t | recv (size_t len,...) const |
|
ssize_t | send (const void *buf, size_t len, ACE_OVERLAPPED *overlapped) const |
| Send len bytes via Win32 <WriteFile> using overlapped I/O. More...
|
|
ssize_t | recv (void *buf, size_t len, ACE_OVERLAPPED *overlapped) const |
| Recv len bytes via Win32 <ReadFile> using overlapped I/O. More...
|
|
ssize_t | sendv (const iovec iov[], int len) const |
| Send an <iovec> of size len to the stream. More...
|
|
ssize_t | sendv_n (const iovec iov[], int len) const |
|
ssize_t | recvv_n (iovec iov[], int len) const |
| Receive an <iovec> of size len from the stream. More...
|
|
void | dump (void) const |
| Dump the state of an object. More...
|
|
int | close (void) |
| Close down the SPIPE without removing the rendezvous point. More...
|
|
int | remove (void) |
|
int | get_local_addr (ACE_SPIPE_Addr &) const |
| Return the local address of this endpoint. More...
|
|
int | disable (int signum) const |
|
void | dump (void) const |
| Dump the state of an object. More...
|
|
int | control (int cmd, void *) const |
| Interface for <ioctl>. More...
|
|
int | enable (int value) const |
|
int | disable (int value) const |
|
ACE_HANDLE | get_handle (void) const |
| Get the underlying handle. More...
|
|
void | set_handle (ACE_HANDLE handle) |
| Set the underlying handle. More...
|
|
void | dump (void) const |
| Dump the state of an object. More...
|
|
Defines the methods in the ACE_SPIPE_Stream abstraction.
buf is the buffer to write from or receive into. len is the number of bytes to transfer.
The "_n()" I/O methods keep looping until all the data has been transferred. These methods also work for sockets in non-blocking mode i.e., they keep looping on EWOULDBLOCK.
The return values for the "*_n()" methods match the return values from the non "_n()" methods and are specified as follows:
- The number of bytes transferred is returned.
- On error, -1 is returned, errno is set to appropriate error.
- On EOF, 0 is returned, errno is irrelevant.
Methods with <iovec> parameter are I/O vector variants of the I/O operations.
The <send> and <revc> operations use "message" semantics rather than "bytestream" semantics.