Beispiel #1
0
        public void SendMessage(Squiggle.Core.Presence.Transport.Message message)
        {
            var msg = new MulticastMessage()
            {
                Sender = localEndpoint, Data = SerializationHelper.Serialize(message)
            };

            if (mcastHost != null)
            {
                mcastHost.Send(serverEndpoint, msg);
            }
        }
Beispiel #2
0
 public void Start()
 {
     mcastHost = new MulticastHost(localEndpoint);
     mcastHost.MessageReceived += mcastHost_MessageReceived;
     mcastHost.Start();
     mcastHost.Send(serverEndpoint, new RegisterMessage()
     {
         Sender = localEndpoint
     });
 }