miniupnp/minissdpd
Thomas Bernard ecb382533c minissdpd.c: minor fixes when IPv6 is disabled at compile time 2014-11-06 11:16:20 +01:00
..
.gitignore minissdpd/.gitignore: add listifaces 2014-02-06 10:53:52 +01:00
Changelog.txt minissdpd/openssdpsocket.c: listen on only 1 IPv4 if only 1 interface is specified also when ENABLE_IPV6 is not defined 2014-11-06 11:15:43 +01:00
LICENSE remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
Makefile minissdpd/Makefile: use LDFLAGS when linking binary... 2014-09-06 10:04:23 +02:00
README minissdpd: Translate README in english 2013-08-19 18:48:59 +02:00
README.fr minissdpd: Translate README in english 2013-08-19 18:48:59 +02:00
VERSION prepare version 1.2 release 2012-05-24 18:26:13 +02:00
codelength.h Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers). 2012-09-20 17:52:51 -03:00
config.h Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers). 2012-09-20 17:52:51 -03:00
daemonize.c remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
daemonize.h Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers). 2012-09-20 17:52:51 -03:00
ifacewatch.c Set sockets non blocking 2012-05-24 18:21:24 +02:00
ifacewatch.h Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers). 2012-09-20 17:52:51 -03:00
listifaces.c minissdpd/listifaces: fix. now compatible with linux and BSD 2014-02-03 16:48:51 +01:00
minissdpd.1 Replaced hyphens by minus in man pages 2011-10-09 17:50:09 +02:00
minissdpd.c minissdpd.c: minor fixes when IPv6 is disabled at compile time 2014-11-06 11:16:20 +01:00
minissdpd.init.d.script Adding minissdpd 2011-09-28 21:14:08 +02:00
openssdpsocket.c minissdpd/openssdpsocket.c: listen on only 1 IPv4 if only 1 interface is specified also when ENABLE_IPV6 is not defined 2014-11-06 11:15:43 +01:00
openssdpsocket.h Rename all include guards to not clash with C99 (7.1.3 Reserved identifiers). 2012-09-20 17:52:51 -03:00
testcodelength.c remove unused argument warning 2012-05-08 23:11:02 +02:00
testminissdpd.c use bigger buffers for minissdpd responses 2014-04-12 10:06:53 +02:00
upnputils.c minissdpd/upnputils.c: removed get_lan_for_peer() 2013-09-07 08:48:40 +02:00
upnputils.h minissdpd/upnputils.c: removed get_lan_for_peer() 2013-09-07 08:48:40 +02:00

README

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