예제 #1
0
 public virtual bool SetChanel(IQcSocket socket, IQcDataReciver reciver)
 {
     if (this.socket != null)
     {
         this.socket.CloseLink();
     }
     this.socket  = socket;
     this.reciver = reciver;
     if (reciver != null)
     {
         reciver.ReceiveCmd += new QcNetEvent(reciver_ReceiveCmd);
     }
     return(true);
 }
예제 #2
0
 public QcCmdEventArgs(QcCmd cmd, IQcSocket socket)
 {
     this.cmd    = cmd;
     this.socket = socket;
 }