Hands-On-Network-Programming-with-C icon indicating copy to clipboard operation
Hands-On-Network-Programming-with-C copied to clipboard

Book Example Code for Hands-On Network Programming with C

Results 10 Hands-On-Network-Programming-with-C issues
Sort by recently updated
recently updated
newest added

Hi Lewis, Have you ever done this with a UDP package? https://stackoverflow.com/questions/5281409/get-destination-address-of-a-received-udp-packet Looks like you can't use recvfrom and have to switch to recvmsg to use IP_PKTINFO I'll dig into...

The call to setsockopt won't compiler on VC++ compiler since (on Windows headers), [setsockopt](https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-setsockopt) takes `char* ` and not `void*`. It is true that MS header/implmenetation is faulty as it...

Hi codeplea, I realized the following behavior: The server closes after connection of the client browser. Closing the browser on the local maschine leads to the strange state, that the...

Combining the checks for SSL_CTX_use_certificate_file() and SSL_CTX_use_PrivateKey_file() leads to the case where if the second function fails we print a message pointing to the first one, which is misleading. Check...

Handle error conditions uniformly by following these rules: - return 0 on success and 1 on failure - when an error occurs in main() use return - when an error...

The getaddrinfo() function returns 0 on success or a non-zero error code on failure. For reference: - https://man7.org/linux/man-pages/man3/getaddrinfo.3.html - https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-getaddrinfo On Unix systems, errno is only set in the case...

According to https://man7.org/linux/man-pages/man3/getifaddrs.3.html getifaddrs() returns -1 on error and sets errno. Use the perror() function to provide a more informative error message in such cases.

Error message: 'ERROR_BUFFER_OVERFLOW' undeclared (first use in this function) 'ERROR_SUCCESS' undeclared (first use in this function) How to fix it?