]>
Commit | Line | Data |
---|---|---|
e5012450 | 1 | /* |
2 | * Common functions used in all apps | |
3 | */ | |
4 | ||
78b3fb13 | 5 | #include <netdb.h> |
6 | #include <sys/socket.h> | |
7 | #include <netinet/in.h> | |
8 | ||
e5012450 | 9 | int Read(int fd, unsigned char *buf, int len); |
10 | int establish(u_short portnum); | |
11 | int get_connection(int s); | |
12 | int openconn(char *hostname, int port); |