socket send/receive working