Jump to content
  • Advertisement
Sign in to follow this  
kimryo

About retrieve API address by WSAIoctl

This topic is 3647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

WSAIoctl provides functionality to retrieve many extension network i/o APIs' address with dwIoControlCode set to SIO_GET_EXTENSION_FUNCTION_POINTER, and my question is when get API address by WSAIoctl, does the first parameter(SOCKET s) necessary to be a valid socket? Does the retrieved API address has any relations to a valid socket? If it is, do I need to retrieve API address for every socket I created respectively? Just a little confused on this point, any help is appreciate. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
I'm going to guess that no, it doesn't relate to the socket at all. However, the function might still require a valid socket (If the function checks for a valid socket before checking anything else, it's likely t oexit out if given an invalid socket).

There's no reason why you'd get a different function pointer back for a dicfferent socket - although maybe if the two sockets were different protocols (E.g. UDP / TCP/IP).

If in doubt, try it and log the address you get back [smile]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!