46 #define SOCK_NONBLOCK O_NONBLOCK
61 int proto_osi3,
int flags) {
74 int proto_osi3,
int flags) {
87 int proto_osi3,
int flags) {
93 "inet_dgram_server::inet_dgram_server() - could "
94 "not create server socket!");
98 is_nonblocking = flags & SOCK_NONBLOCK;
110 int proto_osi3,
int flags) {
111 setup(bhost.c_str(), bport.c_str(), proto_osi3, flags);
inet_dgram_server(const char *host, const char *port, int proto_osi3, int flags=0)
Create datagram socket and bind it.
void setup(const char *host, const char *port, int proto_osi3, int flags=0)
Set up socket. NOT FOR EXTERNAL USE
string host
The address we're bound or connected to.
string port
The port we're bound or connected to.
int sfd
sfd is the sockets API file descriptor
int create_inet_server_socket(const char *bind_addr, const char *bind_port, char proto_osi4, char proto_osi3, int flags)
Create a TCP or UDP server socket.
Contains all functions available in the C libsocket.
Contains libsocket elements.
This class is instantiated and thrown when an error occurs. If there's an error somewhere in libsocke...