MLIB
|
An IO stream using a sockbuf object as the underlying streambuf. More...
#include <sockstream.h>
Public Member Functions | |
generic_sockstream () | |
Default constructor. | |
generic_sockstream (const sockbuf< T > &sb) | |
Create from an existing mlib::sockbuf. | |
generic_sockstream (const sock &s) | |
Create from an existing mlib::sock. | |
generic_sockstream (int type, int domain=AF_INET, int proto=0) | |
Create a SOCK_STREAM or SOCK_DGRAM stream. | |
generic_sockstream (const inaddr &remote, int type=SOCK_STREAM) | |
Create a SOCK_STREAM connected to a remote peer. | |
sockbuf< T > * | rdbuf () |
Return the buffer used by this stream. | |
sockbuf< T > * | operator-> () |
Return the buffer used by this stream. | |
An IO stream using a sockbuf object as the underlying streambuf.
The streambuf object can be retrieved using rdbuf() function or the -> operator.