Amit A
2008-10-21 08:11:01 UTC
i have a problem
actually my code is
#include
#include
#include
int main()
{ int i=socket(AF_INET,SOCK_STREAM,0);
printf("%d",i);
getch();
}
i got the value of i = -1
does it mean socket function called successfully
or it mean it return an error
i know in unix it is an error
but i dun know in windows
socket programing
ALERT:
i have inlucded all lib files so there is no such error
help me and if it is a error then cn u tell me a valid reason for the same ?
thanx in advance