Thomas Bernard 186c504070 minissdpd: revert "listen on only 1 IPv4 if only 1 interface is specified"
because it prevents broadcast messages to be received
see 7ec7cec59e88bd5d2b346e704a4b96d03d0df5aa
and 6d379d54f5e5d3bb9457d167ee9dbe4a044566ca
2014-11-28 15:50:06 +01:00
..
2012-05-24 18:21:24 +02:00
2014-11-28 15:49:32 +01:00
2011-09-28 21:14:08 +02:00
2013-08-19 18:48:59 +02:00
2012-05-24 18:26:13 +02:00

protocol :

Connect to the unix socket.
Sent request, answer response.
close unix socket connection.

Request format :
1st byte : request type
          1 - type
		  2 - USN (unique id)
		  3 - everything
		  4 - submit service (see below)
n bytes : string length : 1 byte if < 128 else the upper bit indicate that
one additional byte should be read, etc. (see codelength.h)
n bytes = string

Response format :
1st byte : number of services/devices
For each service/device :
URL :
  n bytes string length
  n bytes = Location string
ST:
  n bytes string length
  n bytes = type string
USN:
  n bytes string length
  n bytes = identifier string

request type 4 = submit service
1st byte  = 4
(k,n) bytes : length and string "ST" (service type)
(k,n) bytes : length and string "USN"
(k,n) bytes : length and string "Server"
(k,n) bytes : length and string "Location"
No answer