Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created March 5, 2020 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/a2b67b5e53162e4810fdbed91d3f5bb9 to your computer and use it in GitHub Desktop.
Save kunigami/a2b67b5e53162e4810fdbed91d3f5bb9 to your computer and use it in GitHub Desktop.
getaddrinfo("www.example.com", "http", &hints, &res);
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment