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