int sock_read(int sock, char *buf, int bytes);
int sock_write(int sock, char *buf, int nbytes);
int ml_sock_gets(int sock, char *buf);
-int sock_gets(int sock, char *buf);
+int sock_getln(int sock, char *buf, int bufsize);
int sock_puts(int sock, char *buf);