winsock error returned from socket(AF_INET...
Posted on 1999-01-20
I am trying to write a simple DLL that opens a socket
to a Unix machine. The routine keeps returning
10047 (notsupported) from the connect call. Actually
I think it's coming from the socket call. TCP is up
on the LAN and all my other apps work great. Can
anyone see my problem?
__declspec (dllexport) void _stdcall
woe_init (long *out1, long *out2)
SOCKET H = socket(PF_INET,SOCK_STREAM,0);
struct sockaddr_in sock;
sock.sin_addr.s_addr = inet_addr("127.0.0.1");
*out1 = WSAGetLastError();
*out2 = WSAGetLastError();