Exemple #1
0
 private static void RaiseLocalEvent(AnycastClient client, string origin, string eventName, RtpData data)
 {
     if (ReceivedRaise != null)
     {
         var ea = new ReceivedRaiseEventArgs(origin, eventName, data);
         ReceivedRaise(client, ea);
     }
 }
Exemple #2
0
        ///// <summary>
        ///// 获得所在组播的信息
        ///// </summary>
        ///// <returns></returns>
        //public Multicast GetMulticast()
        //{
        //    return this.Channel.Context.Client.GetMulticast(this.Channel.HostAddress);
        //}

        internal static void Process(AnycastClient client, ClientEvents.MessageReceivedEventArgs ea)
        {
            var data = RtpDataAnalyzer.Deserialize(ea.Message.Origin, ea.Message.Body);

            if (TryProcessCall(ea.Message, data))
            {
                return;
            }

            var header    = ea.Message.Header;
            var origin    = ea.Message.Origin;
            var eventName = header.GetValue <string>(FieldRtpEventName);

            RaiseLocalEvent(client, origin, eventName, data);
        }
Exemple #3
0
 public ClientLogicHandler(AnycastClient client)
     : base(client)
 {
 }
 public LoginAuthReqHandler(AnycastClient client)
     : base(client)
 {
 }
 public HeartBeatReqHandler(AnycastClient client)
     : base(client)
 {
 }
Exemple #6
0
 public ClientHandlerBase(AnycastClient client)
 {
     this.Client = client;
 }
Exemple #7
0
 public Multicast(AnycastClient session, string address, Participant host)
 {
     this.Client  = session;
     this.Address = address;
     this.Host    = host;
 }