skstream
|
A base class for iostreams that handles stream sockets. More...
#include <skstream.h>
Public Member Functions | |
basic_socket_stream (socketbuf &buffer, int proto=FreeSockets::proto_IP) | |
Make a socket stream. | |
bool | fail () |
bool | operator! () |
bool | timeout () const |
virtual SOCKET_TYPE | getSocket () const |
virtual void | close () |
void | shutdown (bool wr_only=false) |
void | setSocket (SOCKET_TYPE sock) |
void | setTimeout (unsigned sec, unsigned usec=0) |
int | getProtocol () const |
![]() | |
int | getLastError () const |
void | copyLastError (const basic_socket &other) |
bool | is_open () const |
Protected Attributes | |
socketbuf & | _sockbuf |
int | m_protocol |
![]() | |
int | LastError |
Additional Inherited Members | |
![]() | |
static bool | startup () |
![]() | |
void | setLastError () const |
A base class for iostreams that handles stream sockets.