Second, I am not doing error checking on most function calls. If you want your code to be IPV4-IPV6 agnostic, IP agnostic and portable to different plataforms you can use the getaddrinfo() function, as explained in this tutorial. Keep in mind that I am configuring the settings manually. Basically the client connects to the server, the server sends the message “Hello World”, and the client prints the received message. ![]() Below you’ll find an example of a very simple client-server program in C.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |