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