socket() function error in C

I have a socket() function call in my code.(using C language): socket(AF_INET, SOCK_STREAM, 0)) I want that it should result in error.(INVALID_SOCKET) Do we have some way out so that above function call results in error. Like stopping some services,etc

1
задан Pradeep 23 September 2010 в 06:11
поделиться