private void HandlePing(IPEndPoint remoteEndPoint, PingMessage message) { var ack = new AckMessage(message.SequenceNumber); _messagePump.Send(remoteEndPoint, ack); }
private void EncodePing(PingMessage message, BinaryWriter writer) { writer.Write(message.SequenceNumber); }