public AsynchMobileAppSocketService() : base() { MyManagerLoginMobileUser = new ManagerLoginMobileUser(); MyManagerSocketLoginUser = MyManagerLoginMobileUser; MyMobileServerClientAPI = new MobileServerClientAPI(); MyLGJSocketClientAPIBase = MyMobileServerClientAPI; InitServiceParas(); }
protected void InitServiceParas() { MyTCPListerPort = 8920; MySocketServiceTypeID = SocketServiceTypeID.RequestIndexServer; if (MyManagerSocketLoginUser == null) { MyManagerSocketLoginUser = new ManagerLoginMobileUser(); } MyManagerSocketLoginUser.MyAsynchSendMessageCallback = new ManagerSocketLoginUser.AsynchSendMessageCallback(this.StartAsynchSendMessage); //MyLGJSocketClientAPIBase = new LGJSocketClientAPILib.MobileServerClientAPI(); //MyLGJSocketClientAPIBase.MyRemoteServerColseCallBack = new LGJSocketClientAPIBase.RemoteServerColseCallBack(this.SocketClientColseServerCallBack); //MyLGJSocketClientAPIBase.MyRecieveMessageCallback = new LGJSocketClientAPIBase.RecieveMessageCallback(this.SocketClientResponseCallBack); //MyLGJSocketClientAPIBase.ReturnSendMessageInvoke = new LGJSocketClientAPIBase.SendRecieveMessageCallback(this.SocketClientRequestCallBack); }