* Move SSDP and TiVo beacon notifications to a separate thread.

This commit is contained in:
Justin Maggard
2009-06-03 20:47:48 +00:00
parent bce6da53ea
commit 27696edf6f
3 changed files with 143 additions and 113 deletions

View File

@ -8,6 +8,16 @@
/*#include "minidlnatypes.h"*/
struct sockets
{
int snotify[MAX_LAN_ADDR];
#ifdef TIVO_SUPPORT
int sbeacon;
struct sockaddr_in tivo_bcast;
#endif
struct timeval *timeout;
};
int
OpenAndConfSSDPReceiveSocket();
/* OpenAndConfSSDPReceiveSocket(int n_lan_addr, struct lan_addr_s * lan_addr);*/
@ -39,5 +49,8 @@ ProcessSSDPRequest(int s, unsigned short port);
int
SendSSDPGoodbye(int * sockets, int n);
void *
start_notify(void * arg);
#endif