made RecvPacket synchronous