![]() ![]() struct sockaddr_in serv //This is our main socket variable. ![]() The modification that has to be made so as to accept multiple connections will be using either a pthread or a child process. So in normal servers, there is a possibility that there can be multiple connections to this server simultaneously. Now comes the main part, setting up the Socket. Starting off with a few includes: #include #include //For Sockets #include #include //For the AF_INET (Address Family) We need to first set up the socket on the server side script. We will create a server script and a client script (that will connect to the server). In this post, you will learn how to create a simple chat application using Sockets in C! Getting Started ![]() Simple Chat Server using Sockets in C Introduction ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |