Beispiel #1
0
 private void CompactNode(byte[] buffer, int offset)
 {
     DhtMessage.Write(buffer, offset, id.Bytes);
     CompactPort(buffer, offset + 20);
 }
Beispiel #2
0
 public void CompactPort(byte[] buffer, int offset)
 {
     DhtMessage.Write(buffer, offset, endpoint.Address.GetAddressBytes());
     DhtMessage.Write(buffer, offset + 4, (ushort)endpoint.Port);
 }