Optimization in SSDP
This commit is contained in:
parent
0956e4aee3
commit
5fa807e50b
4 changed files with 13 additions and 6 deletions
|
|
@ -178,7 +178,8 @@ public class SSDPClient extends ThreadedUDPNetwork implements ThreadedUDPNetwork
|
|||
* Location: http://localhost:80
|
||||
*/
|
||||
public void receivedPacket(DatagramPacket packet, ThreadedUDPNetwork network) {
|
||||
HttpHeaderParser header = new HttpHeaderParser( new String( packet.getData() ) );
|
||||
String msg = new String(packet.getData(), packet.getOffset(), packet.getLength());
|
||||
HttpHeaderParser header = new HttpHeaderParser( msg );
|
||||
logger.log(Level.FINEST, "Received(from: "+packet.getAddress()+"): "+ header);
|
||||
|
||||
String usn = header.getHeader("USN");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue