miniupnp/minissdpd
Thomas Bernard e61a713d02 minissdpd/upnputils.c: removed get_lan_for_peer() 2013-09-07 08:48:40 +02:00
..
.gitignore Added relevant .gitignore files 2011-09-30 09:59:34 +02:00
Changelog.txt minissdpd: Translate README in english 2013-08-19 18:48:59 +02:00
LICENSE remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
Makefile Clean CLFAGS in Makefile 2012-05-08 23:06:14 +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 Adding minissdpd 2011-09-28 21:14:08 +02:00
minissdpd.1 Replaced hyphens by minus in man pages 2011-10-09 17:50:09 +02:00
minissdpd.c Set sockets non blocking 2012-05-24 18:21:24 +02:00
minissdpd.init.d.script Adding minissdpd 2011-09-28 21:14:08 +02:00
openssdpsocket.c Set sockets non blocking 2012-05-24 18:21:24 +02: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 Remove a few signed/unsigned compares 2012-05-08 23:10:25 +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