Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Functions to the Winsock Cheat Sheet #8

Open
7etsuo opened this issue May 16, 2023 · 1 comment
Open

Add Functions to the Winsock Cheat Sheet #8

7etsuo opened this issue May 16, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@7etsuo
Copy link
Owner

7etsuo commented May 16, 2023

Add the following functions to the Winsock Cheat Sheet section:

  • gethostbyname
  • gethostbyaddr
  • InternetConnect
  • InternetCrackUrl
  • InternetOpen
  • InternetOpenUrl
@7etsuo 7etsuo added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 16, 2023
@7etsuo
Copy link
Owner Author

7etsuo commented Jun 29, 2023

Also, add the following

shutdown

int WSAAPI shutdown(
  [in] SOCKET s,    // A descriptor identifying a socket.
  [in] int    how.      // Flag that describes what types of operation will no longer be allowed.
); // The shutdown function disables sends or receives on a socket.

It might be worth noting the flags here as well.

Value Meaning
SD_RECEIVE 0 Shutdown receive operations.
SD_SEND 1 Shutdown send operations.
SD_BOTH 2 Shutdown both send and receive operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant