Example #1
0
        public UPnPProtocol(FlowLib.Connections.UPnP connection)
        {
            this.MessageReceived = new FmdcEventHandler(OnMessageReceived);
            this.MessageToSend = new FmdcEventHandler(OnMessageToSend);
            this.Update = new FmdcEventHandler(OnUpdate);

            Encoding = System.Text.Encoding.ASCII;
            con = connection;
        }
Example #2
0
        public UPnPProtocol(FlowLib.Connections.UPnP connection)
        {
            this.MessageReceived = new FmdcEventHandler(OnMessageReceived);
            this.MessageToSend   = new FmdcEventHandler(OnMessageToSend);
            this.Update          = new FmdcEventHandler(OnUpdate);

            Encoding = System.Text.Encoding.ASCII;
            con      = connection;
        }
Example #3
0
 public void Dispose()
 {
     if (IsDisposed)
     {
         return;
     }
     MessageReceived -= OnMessageReceived;
     MessageToSend   -= OnMessageToSend;
     Update          -= OnUpdate;
     Encoding         = null;
     con              = null;
     IsDisposed       = true;
 }
Example #4
0
 public void Dispose()
 {
     if (IsDisposed)
         return;
     MessageReceived -= OnMessageReceived;
     MessageToSend -= OnMessageToSend;
     Update -= OnUpdate;
     Encoding = null;
     con = null;
     IsDisposed = true;
 }