Merge "Implement Socket::receive<T> and refactor Socket::receiveAck"