Socket programming is a way of connecting two nodes on a network to
communicate with each other.
       Following Two network communication protocols are used:
        1. TCP/IP: IP uses logical addresses to identify hosts and TCP establish connections
        2. UDP: Communication via short messages
       Terms in Socket Programming:
        1. Socket: Socket is the endpoint for client/server communication.
           Socket=IP address + Port number
      Where IP is the Internet Protocol that provides unique addressing for all hosts in the network
                  and Port Number represents a single service offered by the server  in which server actively listens on for incoming connections in TCP/IP and messages for UDP.
        2. TCP Socket: Below figure shows the functions associated at server and client side.
|  | 
| TCP SOCKET | 
 
No comments:
Post a Comment