Computer Network Lab Manual / Advanced Socket Sytem Calls in computer networks

Program Name

Write a C Program for Advanced Socket Sytem Calls in computer networks.
Theory
cc s.c
./a.out
Program Code


Input and Output:

Output:
Peer's IP address is: 10.2.0.7                                                                 
Peer's port is: 7                                                                                   
Client's IP address is: 10.2.0.7                                                                     
Client's port is: 58929     


Home     Back