1 #ifndef LIBSOCKET_INETSERVERSTREAM_H_D84111E97D5548209F3816859EF080FE 2 #define LIBSOCKET_INETSERVERSTREAM_H_D84111E97D5548209F3816859EF080FE 41 using std::unique_ptr;
60 int proto_osi3,
int flags = 0);
62 int proto_osi3,
int flags = 0);
64 void setup(
const char* bindhost,
const char* bindport,
int proto_osi3,
66 void setup(
const string& bindhost,
const string& bindport,
int proto_osi3,
70 unique_ptr<inet_stream>
accept2(
int numeric = 0,
int accept_flags = 0);
72 const string& getbindhost(
void);
73 const string& getbindport(
void);
Contains libsocket elements.
unique_ptr< inet_stream > accept2(int numeric=0, int accept_flags=0)
Accept a connection and return a socket connected to the client.
Provides TCP/IP client sockets. This class is the most used socket class in libsocket++....
void setup(const char *bindhost, const char *bindport, int proto_osi3, int flags=0)
Set up a server socket.
Internet-socket base class This class provides some fields for all internet sockets,...
inet_stream * accept(int numeric=0, int accept_flags=0)
Accept a connection and return a socket connected to the client.
inet_stream_server(void)
Void constructor; don't forget to setup() the socket before use!
TCP server socket (passive TCP socket)