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(); }
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(); }
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()); }