예제 #1
0
 private void RelayRemovedSink(Gatekeeper sender, UPnPRelayDevice d)
 {
     RemoveInboundDevice(d);
 }
예제 #2
0
 private void RelayRemovedSink(Gatekeeper sender, UPnPRelayDevice d)
 {
     RemoveInboundDevice(d);
 }
예제 #3
0
 private void RelaySink(Gatekeeper sender, UPnPRelayDevice d)
 {
     AddNewInboundDevice(d);
 }
예제 #4
0
        private void MainForm_Load(object sender, System.EventArgs e)
        {
            SharingOnLabel.Text = "Sharing on port " + this.PortNumber.ToString();

            gk = new Gatekeeper(this.PortNumber);
            gk.OnEvent += new Gatekeeper.OnEventHandler(GKEventSink);
            gk.OnAction += new Gatekeeper.OnActionHandler(GKActionSink);
            gk.OnUPnPRelayDevice += new Gatekeeper.OnUPnPRelayDeviceHandler(RelaySink);
            gk.OnUPnPRelayDeviceRemoved += new Gatekeeper.OnUPnPRelayDeviceHandler(RelayRemovedSink);
        }