20 #ifndef PSOCKSXX_NSOCKSTREAM_H
21 #define PSOCKSXX_NSOCKSTREAM_H
23 #include <psocksxx/iosockstream.h>
24 #include <psocksxx/nsockaddr.h>
void listen(int backlog=0)
make this stream passive and ready to accept connections
Definition: nsockstream.cpp:86
Socket exception.
Definition: sockexception.h:35
virtual ~nsockstream()
destructor
Definition: nsockstream.cpp:45
socket_type_t
Definition: sockstreambuf.h:69
Input and Output controller class for socket streams.
Definition: iosockstream.h:37
Socket stream buffer class.
Definition: sockstreambuf.h:48
socket_protocol_t
Definition: sockstreambuf.h:78
Definition: iosocks.cpp:23
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 address class for IPv4 addresses.
Definition: nsockaddr.h:37
Socket timeout exception.
Definition: socktimeoutexception.h:36
Network (IPv4) controller class.
Definition: nsockstream.h:36
nsockstream(sockstreambuf::socket_type_t type, sockstreambuf::socket_protocol_t proto)
constructor
Definition: nsockstream.cpp:25