@@ -139,15 +139,7 @@ public void SendSearchMessage(EndPoint localIp)
139
139
values [ "MX" ] = "3" ;
140
140
141
141
// UDP is unreliable, so send 3 requests at a time (per Upnp spec, sec 1.1.2)
142
- SendDatagram ( "M-SEARCH * HTTP/1.1" , values , localIp , 2 ) ;
143
- }
144
-
145
- public void SendDatagram ( string header ,
146
- Dictionary < string , string > values ,
147
- EndPoint localAddress ,
148
- int sendCount )
149
- {
150
- SendDatagram ( header , values , _ssdpEndp , localAddress , false , sendCount ) ;
142
+ SendDatagram ( "M-SEARCH * HTTP/1.1" , values , _ssdpEndp , localIp , false , 2 ) ;
151
143
}
152
144
153
145
public void SendDatagram ( string header ,
@@ -524,7 +516,7 @@ private void NotifyDevice(UpnpDevice dev, string type, int sendCount, bool logMe
524
516
_logger . Debug ( "{0} said {1}" , dev . USN , type ) ;
525
517
}
526
518
527
- SendDatagram ( header , values , new IPEndPoint ( dev . Address , 0 ) , sendCount ) ;
519
+ SendDatagram ( header , values , _ssdpEndp , new IPEndPoint ( dev . Address , 0 ) , false , sendCount ) ;
528
520
}
529
521
530
522
public void RegisterNotification ( Guid uuid , Uri descriptionUri , IPAddress address , IEnumerable < string > services )
0 commit comments