This commit is contained in:
Naim Abda 2012-11-23 16:07:42 +02:00
parent 8fdd555d70
commit 00a68330cd

View file

@ -281,7 +281,7 @@ static void* _thread_start (void *arg)
{ {
fflush(stdout); fflush(stdout);
// peek into the first 12 bytes of data; determine if connection request or announce request. // peek into the first 12 bytes of data; determine if connection request or announce request.
r = recvfrom(usi->sock, tmpBuff, UDP_BUFFER_SIZE, 0, (SOCKADDR*)&remoteAddr, (unsigned*)&addrSz); r = recvfrom(usi->sock, tmpBuff, UDP_BUFFER_SIZE, 0, (SOCKADDR*)&remoteAddr, &addrSz);
// printf("RECV:%d\n", r); // printf("RECV:%d\n", r);
r = _resolve_request(usi, &remoteAddr, tmpBuff, r); r = _resolve_request(usi, &remoteAddr, tmpBuff, r);
// printf("R=%d\n", r); // printf("R=%d\n", r);
@ -293,7 +293,7 @@ static void* _thread_start (void *arg)
} }
#ifdef WIN32 #ifdef WIN32
static DWORD _maintainance_start (LPVOID arg); static DWORD _maintainance_start (LPVOID arg)
#elif defined (linux) #elif defined (linux)
static void* _maintainance_start (void *arg) static void* _maintainance_start (void *arg)
#endif #endif