skstream
Public Member Functions | Protected Attributes | List of all members
basic_socket_stream Class Reference

A base class for iostreams that handles stream sockets. More...

#include <skstream.h>

Inheritance diagram for basic_socket_stream:
basic_socket dgram_socket_stream stream_socket_stream udp_socket_stream tcp_socket_stream unix_socket_stream

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
 
- Public Member Functions inherited from basic_socket
int getLastError () const
 
void copyLastError (const basic_socket &other)
 
bool is_open () const
 

Protected Attributes

socketbuf_sockbuf
 
int m_protocol
 
- Protected Attributes inherited from basic_socket
int LastError
 

Additional Inherited Members

- Static Public Member Functions inherited from basic_socket
static bool startup ()
 
- Protected Member Functions inherited from basic_socket
void setLastError () const
 

Detailed Description

A base class for iostreams that handles stream sockets.


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