1 2 3
int sock_connect(const char *host, const char *port); int sock_write(int sd, const char *buf, size_t len); int sock_readln(int sd, char *buf, size_t len);