Hands-On-Network-Programming-with-C | Book Example Code for Hands-On Network Programming with C
kandi X-RAY | Hands-On-Network-Programming-with-C Summary
kandi X-RAY | Hands-On-Network-Programming-with-C Summary
Network programming, a challenging topic in C, is made easy to understand with a careful exposition of socket programming APIs. This book gets you started with modern network programming in C and proper usage of the relevant operating system APIs.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Hands-On-Network-Programming-with-C
Hands-On-Network-Programming-with-C Key Features
Hands-On-Network-Programming-with-C Examples and Code Snippets
Community Discussions
Trending Discussions on Hands-On-Network-Programming-with-C
QUESTION
I'm reading a book about network programming in C. One of the sample programs (here: https://github.com/codeplea/Hands-On-Network-Programming-with-C/blob/master/chap01/unix_list.c) compares a sa_family type (which is an unsigned integer) to what I'm guessing is an enumerator, AF_INET and AF_INET6. How does this work?
I've been looking at socket.h and ifaddrs.h, but don't see any enums in there.
...ANSWER
Answered 2019-Aug-22 at 20:35if (family == AF_INET || family == AF_INET6)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Hands-On-Network-Programming-with-C
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page