in reply to setsockopt - what are the options for ActivePerl under Windows NT?

Download the platform SDK (Software Developers Kit) from Microsoft for platform-specific documentation. It is free. I'd give you the URL but searching http://www.microsoft.com/ requires that JavaScript be turned on and I just don't trust them enough to do that. q-:

What follows is mostly taken from the setsockopt() documentation:

To set the socket to secure mode, the option level parameter, level, must set to SO_SOCKET, the option name, optname to SO_SECURE, and the option value, optval, must be a pointer to a DWORD containing SO_SEC_SSL. These settings ensure that the Unified Secure Sockets Layer (SSL) package be used. For example,

In addition to the normal error values, the setsockopt function can return an additional error code, namely, WSAEISCONN, to signify that the socket can not switch to secure mode once it has been connected.

When used in the context of SSL, the WSAENOPROTOOP error code acquires additional meaning, to indicate that the option level does not equal to SO_SOCKET.

(end extract)

The above is only slightly modified and is probably copyrighted by Microsoft. I copied this tiny fraction of the documentation for educational purposes and without permission from Microsoft. Such should be covered under "fair use".

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: setsockopt - what are the options for ActivePerl under Windows NT?