public static void Read(TcpClientm d) { byte p = d.NetStream.ReadByte(d); d.cli.username = ReadString(d,16); ReadString(d, 255); d.NetStream.ReadInt32(d); d.cli.onJoin(p); }
public Packet2Protocol(TcpClientm d, byte p) { this.data = d; this.protocolVersion = p; }