public void Connect(TcpClientWrapper client) { State = PlayerState.Connecting; Tcp.Client = client; Tcp.NetStreamBinary.Write((byte)ClientPacketTypeBase.ConnectionAck); Tcp.NetStreamBinary.Write((byte)PacketTypeBase.EndOfMessage); }
public TcpFakeNetworkStream(TcpClientWrapper wrapper) { _wrapper = wrapper; }