Computer Network Lab Manual / Computer networks Connection oriented client

Program Name

Write a C Program for Computer networks Connection oriented client.
Theory
1. Connection-oriented service transfers packets between are send by source and received
by the destination nodes. In Connection-oriented service the packets are routed using a path 
called as virtual circuit. It can transfer the data packets between senders to the receiver 
by creating any connection.

2. Standard Port Numbers: 7-ECHO, 13-DAYTIME, 19-CHARACTER GENERATION

3. 10.2.0.7= It is current server IP.
Program Code


Input and Output:

Standard port numbers: 7-ECHO
Input: Enter a String: Hai
Output: Msg received from server: Hai


Standard port numbers: 13-DAYTIME
Input: Enter a String: Hai
Output: Msg received from server is: 23 NOV 2021 13:55:20 IST


Standard port Numbers: 19-CHARACTER GENERATION
Input: Enter a String: Hai
Output: Msg received from server is: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRhai 
10.2.0.7= It is current server IP




Home     Back