linux编程send和recv
send
ssize_t send(int __fd, const void *__buf, size_t __n, int __flags)
描述
Send N bytes of BUF to socket FD. Returns the number sent or -1.
This function is a cancellation point and therefore not marked with
__THROW.
recv
ssize_t recv(int __fd, void *__buf, size_t __n, int __flags)
描述
Read N bytes into BUF from socket FD.
Returns the number read or -1 for errors.
This function is a cancellation point and therefore not marked with
__THROW.