예제 #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;
        }
예제 #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;
        }
예제 #3
0
 public void Dispose()
 {
     if (IsDisposed)
     {
         return;
     }
     MessageReceived -= OnMessageReceived;
     MessageToSend   -= OnMessageToSend;
     Update          -= OnUpdate;
     Encoding         = null;
     con              = null;
     IsDisposed       = true;
 }
예제 #4
0
 public void Dispose()
 {
     if (IsDisposed)
         return;
     MessageReceived -= OnMessageReceived;
     MessageToSend -= OnMessageToSend;
     Update -= OnUpdate;
     Encoding = null;
     con = null;
     IsDisposed = true;
 }