public void Dispose() { handler = null; if (netRead != null) { netRead.Abort(); } c.Close(); }
public ProtocolConnection(TcpClient Client, int ProtocolVersion, IMinecraftCo Handle) { this.c = Client; this.protocolversion = ProtocolVersion; this.handler = Handle; }