Closes the socket.
Suspend until data is received and returns any available data
Schedules data to be sent.