skstream
Public Member Functions | Protected Member Functions
stream_socketbuf Class Reference

A stream buffer class that handles stream sockets. More...

#include <skstream.h>

Inheritance diagram for stream_socketbuf:
socketbuf

List of all members.

Public Member Functions

 stream_socketbuf (SOCKET_TYPE sock, std::streamsize insize=0x8000, std::streamsize outsize=0x8000)
 stream_socketbuf (SOCKET_TYPE sock, std::streambuf::char_type *buf, std::streamsize length)
virtual ~stream_socketbuf ()
 Destroy the socket buffer.

Protected Member Functions

virtual int_type overflow (int_type nCh=traits_type::eof())
 Handle writing data from the buffer to the socket.
virtual int_type underflow ()
 Handle reading data from the socket to the buffer.

Detailed Description

A stream buffer class that handles stream sockets.


Constructor & Destructor Documentation

stream_socketbuf::stream_socketbuf ( SOCKET_TYPE  sock,
std::streamsize  insize = 0x8000,
std::streamsize  outsize = 0x8000 
) [explicit]

Make a new socket buffer from an existing socket, with optional buffer sizes.

stream_socketbuf::stream_socketbuf ( SOCKET_TYPE  sock,
std::streambuf::char_type *  buf,
std::streamsize  length 
)

Make a new socket buffer from an existing socket, with an existing buffer.


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