Hey guys & girls,
I have noticed one thing on iOS/Mac systems ( Unix-wide, I think ): When I try to initialize network socket, it takes 10-20 seconds to create. Here's code:
_core.Print( LOG_INFO, "Creating network socket using udp protocol..\n" );
if( ( NetworkSocket = socket( PF_INET, SOCK_DGRAM, IPPROTO_UDP )) == - 1 ) {
return;
}
On application quit I do this:
shutdown( NetworkSocket, 2 );
close( NetworkSocket );
On Windows it's okay, takes some milliseconds.
What may be a problem? I already tried to null the NetworkSocket. No results.