miniupnp/minissdpd
Thomas Bernard f43f7ee18f minissdpd/getroute.c: define SA_LEN in all situations 2014-12-01 10:31:13 +01:00
..
.gitignore minissdpd/.gitignore: add listifaces 2014-02-06 10:53:52 +01:00
Changelog.txt minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
LICENSE remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
Makefile minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +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 minissdpd: revert "listen on only 1 IPv4 if only 1 interface is specified" 2014-11-28 15:50:06 +01: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
getifaddr.c minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
getifaddr.h minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
getroute.c minissdpd/getroute.c: define SA_LEN in all situations 2014-12-01 10:31:13 +01:00
getroute.h minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
ifacewatch.c minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
ifacewatch.h minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01: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 minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
minissdpd.init.d.script Adding minissdpd 2011-09-28 21:14:08 +02:00
minissdpdtypes.h minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
openssdpsocket.c minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
openssdpsocket.h minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01: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 minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01:00
upnputils.h minisspd: check that peer is from a LAN 2014-11-28 17:48:35 +01: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