* Add client type caching code, so we can behave in a customized manner if necessary for certain clients.

This commit is contained in:
Justin Maggard
2009-05-01 00:01:03 +00:00
parent a67c054ef7
commit 76ab570ed1
7 changed files with 83 additions and 10 deletions

View File

@ -10,6 +10,7 @@
#include <netinet/in.h>
#include <sys/queue.h>
#include "minidlnatypes.h"
#include "config.h"
/* server: HTTP header returned in all HTTP responses : */
@ -31,10 +32,6 @@ enum httpCommands {
EUnSubscribe
};
enum clientType {
EXbox = 1
};
struct upnphttp {
int socket;
struct in_addr clientaddr; /* client address */
@ -46,7 +43,7 @@ struct upnphttp {
int req_contentlen;
int req_contentoff; /* header length */
enum httpCommands req_command;
enum clientType req_client;
enum client_types req_client;
const char * req_soapAction;
int req_soapActionLen;
const char * req_Callback; /* For SUBSCRIBE */