Esempio n. 1
0
 internal LocalPeerData(NetBuffer buffer)
 {
     peerType          = buffer.ReadString();
     peerName          = buffer.ReadString();
     passwordProtected = (buffer.ReadByte() == 1);
     comment           = buffer.ReadString();
     platform          = buffer.ReadString();
     timestamp         = DateTime.FromBinary(buffer.ReadInt64());
     internalEndpoint  = buffer.ReadEndPoint();
 }
Esempio n. 2
0
 internal LocalHostData(NetBuffer buffer)
 {
     gameType          = buffer.ReadString();
     gameName          = buffer.ReadString();
     gameMode          = buffer.ReadString();
     gameLevel         = buffer.ReadString();
     connectedPlayers  = buffer.ReadInt32();
     playerLimit       = buffer.ReadInt32();
     passwordProtected = (buffer.ReadByte() == 1);
     dedicatedServer   = (buffer.ReadByte() == 1);
     useNat            = (buffer.ReadByte() == 1);
     useProxy          = (buffer.ReadByte() == 1);
     comment           = buffer.ReadString();
     platform          = buffer.ReadString();
     timestamp         = DateTime.FromBinary(buffer.ReadInt64());
     internalEndpoint  = buffer.ReadEndPoint();
 }
Esempio n. 3
0
 internal NetworkPeer(NetBuffer buffer)
 {
     endpoint = buffer.ReadEndPoint();
 }
 internal HostData(NetBuffer buffer)
     : base(buffer)
 {
     externalEndpoint = buffer.ReadEndPoint();
     ping             = buffer.ReadInt32();
 }
 public NetworkEndPoint ReadEndPoint()
 {
     return(_buffer.ReadEndPoint());
 }