skstream
|
A stream buffer class that handles stream sockets. More...
#include <skstream.h>
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. |
A stream buffer class that handles stream sockets.
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.