Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netdb.h>
- int getaddrinfo(const char *node, // e.g. "www.example.com" or IP
- const char *service, // e.g. "http" or port number
- const struct addrinfo *hints,
- struct addrinfo **res);
- /*
- This basically connects to an IP, and display some information regarding it
- */
Advertisement
Add Comment
Please, Sign In to add comment