synchronous send to socket