MLIB
Loading...
Searching...
No Matches
mlib::generic_sockstream< strm > Class Template Reference

An IO stream using a sockbuf object as the underlying streambuf. More...

#include <wsockstream.h>

Inheritance diagram for mlib::generic_sockstream< strm >:

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.
 
sockbufrdbuf ()
 Return the buffer used by this stream.
 
sockbufoperator-> ()
 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.
 

Detailed Description

template<class strm>
class mlib::generic_sockstream< strm >

An IO stream using a sockbuf object as the underlying streambuf.

The streambuf object can be retrieved using rdbuf() function or the -> operator.


The documentation for this class was generated from the following file: