ACE_IOStream< STREAM > Class Template ReferenceA template adapter for creating an iostream-like object using an ACE IPC Stream for the actual I/O. Iostreams use an underlying streambuf object for the IO interface. The iostream class and derivatives provide you with a host of convenient operators that access the streambuf. More...
Detailed Descriptiontemplate<class STREAM>
A template adapter for creating an iostream-like object using an ACE IPC Stream for the actual I/O. Iostreams use an underlying streambuf object for the IO interface. The iostream class and derivatives provide you with a host of convenient operators that access the streambuf.
|
ACE_IOStream< STREAM >::ACE_IOStream | ( | STREAM & | stream, | |
u_int | streambuf_size = ACE_STREAMBUF_SIZE | |||
) | [inline] |
ACE_IOStream< STREAM >::ACE_IOStream | ( | u_int | streambuf_size = ACE_STREAMBUF_SIZE |
) | [inline] |
The default constructor. This will initiailze your STREAM and then setup the iostream baseclass to use a custom streambuf based on STREAM.
ACE_IOStream< STREAM >::~ACE_IOStream | ( | void | ) | [inline, virtual] |
We have to get rid of the <streambuf_> ourselves since we gave it to the <iostream> base class;
int ACE_IOStream< STREAM >::close | ( | void | ) | [inline, virtual] |
The only ambituity in the multiple inheritance is the <close> function.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_IOStream< STREAM >::eof | ( | void | ) | const [inline] |
Returns 1 if we're at the end of the <STREAM>, i.e., if the connection has closed down or an error has occurred, else 0. Under the covers, <eof> calls the streambuf's timeout function which will reset the timeout flag. As as result, you should save the return of <eof> and check it instead of calling <eof> successively.
virtual int ACE_IOStream< STREAM >::ipfx0 | ( | void | ) | [inline, virtual] |
virtual int ACE_IOStream< STREAM >::ipfx1 | ( | void | ) | [inline, virtual] |
virtual int ACE_IOStream< STREAM >::ipfx | ( | int | need = 0 |
) | [inline, virtual] |
virtual void ACE_IOStream< STREAM >::isfx | ( | void | ) | [inline, virtual] |
virtual int ACE_IOStream< STREAM >::opfx | ( | void | ) | [inline, virtual] |
virtual void ACE_IOStream< STREAM >::osfx | ( | void | ) | [inline, virtual] |
ACE_IOStream< STREAM > & ACE_IOStream< STREAM >::operator>> | ( | ACE_Time_Value *& | tv | ) | [inline] |
Allow the programmer to provide a timeout for read operations. Give it a pointer to NULL to block forever.
ssize_t ACE_IOStream< STREAM >::send | ( | ... | ) | [private] |
ssize_t ACE_IOStream< STREAM >::recv | ( | ... | ) | [private] |
ssize_t ACE_IOStream< STREAM >::send_n | ( | ... | ) | [private] |
ssize_t ACE_IOStream< STREAM >::recv_n | ( | ... | ) | [private] |
ACE_Streambuf_T<STREAM>* ACE_IOStream< STREAM >::streambuf_ [protected] |
This is where all of the action takes place. The streambuf_ is the interface to the underlying STREAM.