Esempio n. 1
0
 public static IPEndPoint ReadIPEndPoint(this IPrimitiveReader reader)
 {
     if (reader.ReadBoolean())
     {
         var address = reader.ReadIPAddress();
         var port    = reader.ReadVarInt32();
         return(new IPEndPoint(address, port));
     }
     return(null);
 }