miniupnp/minissdpd
Thomas BERNARD 1576c07058 use bigger buffers for minissdpd responses 2014-04-12 10:06:53 +02:00
..
.gitignore minissdpd/.gitignore: add listifaces 2014-02-06 10:53:52 +01:00
Changelog.txt minissdpd.c: Discover devices on the network at startup 2014-02-03 16:52:38 +01:00
LICENSE remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
Makefile minissdpd/listifaces: fix. now compatible with linux and BSD 2014-02-03 16:48:51 +01: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: Initialize pointers to NULL (fix) 2014-04-12 10:05:42 +02:00
minissdpd.init.d.script
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 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