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); }
public QcCmdEventArgs(QcCmd cmd, IQcSocket socket) { this.cmd = cmd; this.socket = socket; }