kwitee
kwitee

Reputation: 163

Socket Error 1411

I am using some third party library for sending SMS via EMI protocol. It's written in C and using winsock library. The initialization function is returning this error (Socket error 1411). The function is returning the error on this line:

sock = tcp_init( hostname, port);
if( sock == SOCKET_ERROR) return -1;

I did not find what this error means. Since some of these errors maight be OS specific, my operating system is Windows7 x64.

Upvotes: 0

Views: 920

Answers (2)

Alecs
Alecs

Reputation: 2316

Also you can see System Error Codes in MSDN. It says

ERROR_CLASS_DOES_NOT_EXIST
1411 (0x583)    
Class does not exist.

Anyway, what you need is WSAGetLastError() or just GetLastError functions.

Upvotes: 1

Jay
Jay

Reputation: 24895

I think you should be able find this out yourself by calling WSAGetLastError().

For all kinds of Windows Socket related calls WSAGetLastError will give you the exact error number which should be able to guide you into deciphering the problem.

Upvotes: 1

Related Questions