Exemplo n.º 1
0
 public NetBase(NetSocket netSocket)
 {
     this.mNetSocket      = netSocket;
     this.mProtoUtil      = mNetSocket.mProtoUtil;
     this.mNetMsgManager  = netSocket.mNetMsgManager;
     this.mNetSocketParam = netSocket.mNetSocketParam;
 }
Exemplo n.º 2
0
        public NetSocket(NetSocketParam param)
        {
            mNetSocketParam = param;
            mProtoUtil      = new proto_util();
            mNetMsgManager  = new MsgManager();

            mNetConnect = new NetConnect(this);
            mNetSend    = new NetSend(this);
            mNetReceive = new NetReceive(this);

            Init();
        }