Example #1
0
 public override void OnReceiveProcess(INetEngine netEngine, NetPeer netPeer, OperationResponse operation)
 {
     //这里获取相应数据类型的数据,这里获取的string类型数据
     index = operation.GetParemater <string>(ParmaterCodes.index);
     Log.WriteLine("[index]=" + index);
     //UdpSclient.Instance.SendMsgsToState(index, "ThreadMsg");
     eventParamete.AddParameter(index);
     EventManager.TriggerEvent(MTFrame.MTEvent.GenericEventEnumType.Message, "aaa", eventParamete);
 }
Example #2
0
    public override void OnReceiveProcess(INetEngine netEngine, NetPeer netPeer, OperationResponse operation)
    {
        string index = operation.GetParemater <string>(ParmaterCodes.index);

        //引用类型判断是否为null
        if (index != null)
        {
            SentDataToState(index, ParmaterCodes.index);
            return;
        }
    }
Example #3
0
    public override void OnReceiveProcess(INetEngine netEngine, NetPeer netPeer, OperationResponse operation)
    {
        //这里获取相应数据类型的数据,这里获取的string类型数据
        string people = operation.GetParemater <string>(ParmaterCodes.People);

        //当传输的数据中可能出现0的时候,需要自定义一个类来存储这个0
        if (people != null)
        {
            SentDataToState(people, ParmaterCodes.People);
            return;
        }

        string index = operation.GetParemater <string>(ParmaterCodes.index);

        //引用类型判断是否为null
        if (index != null)
        {
            SentDataToState(index, ParmaterCodes.index);
            return;
        }
    }
Example #4
0
 public override void OnUnconnectedResponseProcess(INetEngine netEngine, IPEndPoint endPoint, OperationResponse operation)
 {
 }