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