7
#include <netinet/in.h>
10
#include <sys/socket.h>
11
#include <netinet/tcp.h>
13
#include <netinet/in.h>
14
#include <arpa/inet.h>
17
int open_tcp_port(short portno);
18
DLLEXPORT int open_any_tcp_port(short *portno);
19
DLLEXPORT int open_any_udp_port(short *portno);
20
DLLEXPORT int connect_to_host(char *hostname, short portno);
21
DLLEXPORT void getlocalip(char *buf, size_t len);
22
int connect_to_addr(struct sockaddr_in *host_addr);
25
void bzero(void *s, size_t n);
28
void closesocket(int fd);