0% found this document useful (0 votes)
0 views

10 Socket Programming Using TCP or UDP

Uploaded by

vanshikaedu0105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

10 Socket Programming Using TCP or UDP

Uploaded by

vanshikaedu0105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

10 Socket programming using TCP or UDP

Output for TCP

1. Server output

Waiting for a connection...

Connection from ('127.0.0.1', 54321)

Received: Hello, TCP server!

2. Client Output

Received: Hello, TCP server!

Output for UDP

1. Server Output

UDP Server is up and listening...

Received Hello, UDP server! from ('127.0.0.1', 54321)

Sent Hello, UDP server! back to ('127.0.0.1', 54321)

2. Client Output

Sending: Hello, UDP server!

Received: Hello, UDP server!

Assignment 2

1) Write short note on:


i)Ethernet
ii)IPv6
iii) ssh

2) Explain the purpose of following protocols with their header format:


i)ARP
ii)ICMP
iii)DNS

3) Discuss Persistent and Non-Persistent Protocols used in Transport and Application layers of TCP/IP
protocol suite

You might also like