Add option to get the socket fd; Add flags argument to send().