public NetBase(NetSocket netSocket) { this.mNetSocket = netSocket; this.mProtoUtil = mNetSocket.mProtoUtil; this.mNetMsgManager = netSocket.mNetMsgManager; this.mNetSocketParam = netSocket.mNetSocketParam; }
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(); }