skstream
|
An iostream class that handle UDP sockets. More...
#include <skstream.h>
Public Member Functions | |
int | open (int service) |
![]() | |
bool | setTarget (const std::string &address, unsigned port) |
void | setOutpeer (const sockaddr_storage &peer) |
const sockaddr_storage & | getOutpeer () const |
const sockaddr_storage & | getInpeer () const |
SOCKLEN | getOutpeerSize () const |
SOCKLEN | getInpeerSize () const |
![]() | |
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 |
Private Member Functions | |
udp_socket_stream (const udp_socket_stream &) | |
udp_socket_stream & | operator= (const udp_socket_stream &socket) |
Additional Inherited Members | |
![]() | |
static bool | startup () |
![]() | |
int | bindToIpService (int service, int type, int protocol) |
![]() | |
void | setLastError () const |
![]() | |
dgram_socketbuf & | dgram_sockbuf |
![]() | |
socketbuf & | _sockbuf |
int | m_protocol |
![]() | |
int | LastError |
An iostream class that handle UDP sockets.