You should have...
sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
...instead.
Why is that? Normally the protocol argument to the socket() function is set to 0 (except for raw sockets).
Florian.
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders