public ClientObj(TcpClient tcpClient, string ID) { formatter = new BinaryFormatter(); this.wh = new AutoResetEvent(false); client = tcpClient; NetCode = NetCodes.getInst(); this.ID = ID; }
public static NetCodes getInst() { if (instance == null) { instance = new NetCodes(); } return(instance); }