miniupnp/minissdpd
Thomas Bernard f34ab24d99 add set_non_blocking() to upnputils.c/h 2012-04-10 00:17:08 +02:00
..
.gitignore Added relevant .gitignore files 2011-09-30 09:59:34 +02:00
Changelog.txt keep Changelog.txt files up to date. 2012-01-25 22:40:32 +01:00
LICENSE remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
Makefile remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
README remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08: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 remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
daemonize.c remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
daemonize.h remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
ifacewatch.c always #include <netinet/in.h> before <arpa/inet.h> 2012-01-20 23:09:40 +01:00
ifacewatch.h remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08: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 remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08:00
minissdpd.init.d.script Adding minissdpd 2011-09-28 21:14:08 +02:00
openssdpsocket.c remove trailing whitespace from minissdpd 2012-02-29 17:52:48 -08: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 add set_non_blocking() to upnputils.c/h 2012-04-10 00:17:08 +02:00
upnputils.h add set_non_blocking() to upnputils.c/h 2012-04-10 00:17: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