Skip to content

Instantly share code, notes, and snippets.

@kunigami

kunigami/socket.cpp

Created Mar 5, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.