* 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

@ -66,6 +66,9 @@ OpenAndConfHTTPSocket(unsigned short port)
int i = 1;
struct sockaddr_in listenname;
/* Initialize client type cache */
memset(&clients, 0, sizeof(struct client_cache_s));
if( (s = socket(PF_INET, SOCK_STREAM, 0)) < 0)
{
DPRINTF(E_ERROR, L_GENERAL, "socket(http): %s\n", strerror(errno));