Using socket lib to recv data