* Fix TiVo beacon support so that we respond to beacons, and drain the socket in the process.

This commit is contained in:
Justin Maggard
2011-02-17 08:54:02 +00:00
parent df2b72ada5
commit b6d764ea13
3 changed files with 90 additions and 78 deletions

View File

@ -28,14 +28,12 @@
* */
struct aBeacon
{
time_t lastSeen;
char* machine;
char* identity;
char* platform;
char* swversion;
char* method;
char* services;
struct aBeacon* next;
#ifdef DEBUG
time_t lastSeen;
#endif
char * machine;
char * identity;
struct aBeacon *next;
};
uint32_t
@ -46,4 +44,7 @@ OpenAndConfTivoBeaconSocket();
void
sendBeaconMessage(int fd, struct sockaddr_in * client, int len, int broadcast);
void
ProcessTiVoBeacon(int fd);
#endif