ofxNetwork -- ofxUdpManager -- WSAGetLastError question

Hi All,

A quick question :

It seems that network-related error handling is happening from ofxNetworkCheckError() which is widely used in the ofxUdpManager.cpp.

So, my question is why this part which uses directly WSAGetLastError (which is also windows specific and there is no check around it) is like this:

bool ofxUDPManager::ConnectMcast(char* pMcast, unsigned short usPort)
{
// associate the source socket’s address with the socket
if (!Bind(usPort))
{
#ifdef _DEBUG
printf(“Binding socket failed! Error: %d”, WSAGetLastError());
#endif
return false;
}

// set ttl to default
if (!SetTTL(1))
{
#ifdef _DEBUG
printf(“SetTTL failed. Continue anyway. Error: %d”, WSAGetLastError());
#endif
}

if (!Connect(pMcast, usPort))
{
#ifdef _DEBUG
printf(“Connecting socket failed! Error: %d”, WSAGetLastError ());
#endif
return false;
}

// multicast connect successful
return true;
}

Am I missing something here ??

Thanks for any insight …

Petros