示例#1
0
 private void DSConnectHandler(Msg_LD_Connect msg, PBChannel channel, int handle, uint seq)
 {
     try {
         LogSys.Log(LOG_TYPE.INFO, "DataStoreClient connect :{0} ", msg.ClientName);
         var reply = new Msg_DL_Connect();
         reply.Result = true;
         reply.Error  = string.Empty;
         channel.Send(reply);
     } catch (Exception e) {
         var reply = new Msg_DL_Connect();
         reply.Result = false;
         reply.Error  = e.Message;
         channel.Send(reply);
         LogSys.Log(LOG_TYPE.ERROR, "Connect failed. ClientName:{0}", msg.ClientName);
     }
 }
示例#2
0
 private void OnConnectDataStore(Msg_DL_Connect msg, PBChannel channel, int src, uint session)
 {
     LoadGlobalData();
 }