Ejemplo n.º 1
0
 protected bool Send(IConMessage message)
 {
     if (ProtocolUPnP.OnSend(message))
     {
         return(Send(message.Bytes));
     }
     return(false);
 }
Ejemplo n.º 2
0
        protected void OnListen()
        {
            IPEndPoint sender   = new IPEndPoint(IPAddress.Any, EndPoint.Port);
            EndPoint   senderEP = (EndPoint)sender;

            //client.Bind(senderEP);
            System.Threading.Thread.Sleep(1 * 1000);
            while (IsListening)
            {
                IPEndPoint sender2   = new IPEndPoint(IPAddress.Any, 0);
                EndPoint   senderEP2 = (EndPoint)sender2;
                byte[]     data      = new byte[1024];
                client.ReceiveFrom(data, ref senderEP2);
                ProtocolUPnP.ParseRaw(data, data.Length, (IPEndPoint)senderEP2);
            }
        }
Ejemplo n.º 3
0
 protected virtual void OnUpdateBase(object sender, FlowLib.Events.FmdcEventArgs e)
 {
     ProtocolUPnP.ActOnOutMessage(e);
 }