Any network communication should goes through socket. To achieve this we use “ip address of client (32 bit) + port number (16 bit) of the process”.
Server will get so many hits from different clients, and then server has to identify each client uniquely to reply every request. We know that in Computer Networks, communication between server and client using TCP/IP protocol is connection oriented (which buffers and bandwidth are reserved for client). This tutorial will help you to know about concept of TCP/IP Socket Programming in C and C++ along with client server program example.