miniupnp/minissdpd
Thomas Bernard 7846aaa4c2 minissdpd: daemonize after init
In order to fail launch and return an error to the parent process
if the init fails.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644509
2011-10-07 11:36:07 +02:00
..
.gitignore Added relevant .gitignore files 2011-09-30 09:59:34 +02:00
Changelog.txt minissdpd: daemonize after init 2011-10-07 11:36:07 +02:00
LICENSE Adding minissdpd 2011-09-28 21:14:08 +02:00
Makefile Adding minissdpd 2011-09-28 21:14:08 +02:00
README Adding minissdpd 2011-09-28 21:14:08 +02:00
VERSION Adding minissdpd 2011-09-28 21:14:08 +02:00
codelength.h Adding minissdpd 2011-09-28 21:14:08 +02:00
config.h Adding minissdpd 2011-09-28 21:14:08 +02:00
daemonize.c Adding minissdpd 2011-09-28 21:14:08 +02:00
daemonize.h Adding minissdpd 2011-09-28 21:14:08 +02:00
ifacewatch.c Adding minissdpd 2011-09-28 21:14:08 +02:00
ifacewatch.h Adding minissdpd 2011-09-28 21:14:08 +02:00
listifaces.c Adding minissdpd 2011-09-28 21:14:08 +02:00
minissdpd.1 Adding minissdpd 2011-09-28 21:14:08 +02:00
minissdpd.c minissdpd: daemonize after init 2011-10-07 11:36:07 +02:00
minissdpd.init.d.script Adding minissdpd 2011-09-28 21:14:08 +02:00
openssdpsocket.c minissdpd: set SO_REUSEADDR on SSDP socket. 2011-10-07 11:30:59 +02:00
openssdpsocket.h Adding minissdpd 2011-09-28 21:14:08 +02:00
testcodelength.c Adding minissdpd 2011-09-28 21:14:08 +02:00
testminissdpd.c Adding minissdpd 2011-09-28 21:14:08 +02:00
upnputils.c Adding minissdpd 2011-09-28 21:14:08 +02:00
upnputils.h Adding minissdpd 2011-09-28 21:14:08 +02:00

README

protocole :

connection à la socket unix.
envoie d'une requete, retour d'une reponse.
fermeture de la connexion.

format de requete :
1 octet : type de la requete 
          1 - type
		  2 - USN (id unique)
		  3 - tout
n octets longueur de la chaine : 1 octet si < 128 sinon le bit haut
indique s'il existe un octet suplementaire, etc...
n octets = chaine

format reponse :
1 octet : nombre de reponses
pour chaque rep :
URL :
  n octets longueur de la chaine
  n octets = chaine Location
ST:
  n octets longueur de la chaine
  n octets = chaine type
USN:
  n octets longueur de la chaine
  n octets = chaine identifiant

Type de requete 4 = submit service
1 octet = 4
(k,n) octets : longueur et chaine "ST" (service type)
(k,n) octets : longueur et chaine "USN"
(k,n) octets : longueur et chaine "Server"
(k,n) octets : longueur et chaine "Location"
Pas de reponse