20#ifndef PSOCKSXX_NSOCKSTREAM_H
21#define PSOCKSXX_NSOCKSTREAM_H
23#include <psocksxx/iosockstream.h>
24#include <psocksxx/nsockaddr.h>
Input and Output controller class for socket streams.
Definition iosockstream.h:39
Socket address class for IPv4 addresses.
Definition nsockaddr.h:37
Network (IPv4) controller class.
Definition nsockstream.h:36
virtual ~nsockstream()
destructor
Definition nsockstream.cpp:45
void listen(int backlog=0)
make this stream passive and ready to accept connections
Definition nsockstream.cpp:86
void bind(const nsockaddr *saddr, bool reuse_addr=false)
bind the stream to a network address
Definition nsockstream.cpp:75
void connect(const nsockaddr *saddr)
connect to a network address
Definition nsockstream.cpp:53
nsockstream * accept()
accept a connection on a listening (passive) stream
Definition nsockstream.cpp:100
Socket exception.
Definition sockexception.h:35
Socket stream buffer class.
Definition sockstreambuf.h:53
socket_protocol_t
Definition sockstreambuf.h:83
socket_type_t
Definition sockstreambuf.h:74
Socket timeout exception.
Definition socktimeoutexception.h:36