fix close fd bug
add recv and send functions to message to help socket operations