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