Download presentation
Presentation is loading. Please wait.
1
UDP Socket Programming
Presenter: Chelsea
2
Outline What is UDP What is Socket
How to write a socket programming with UDP Reference
3
UDP (User Datagram Protocol)
It’s a connection-less oriented protocol Simpler and less overhead compared to TCP No congestion control and No error control Examples of application layer who using UDP: SNMP (Simple Network Management Protocol) DNS (Domain Name System) TFTP (Trivial File Transfer Protocol) RTP (Real-time Protocol) DHCP (Dynamic Host Configuration Protocol) SNTP (Simple Network Time Protocol)
4
What is Socket To establish a connection between one host and another in a network End points of communications Can be used to send and receive data Socket types Stream sockets– uses TCP which is connection-oriented Datagram sockets– uses UDP which is connectionless
5
Socket() Bind() Recv() Send() Close() Server Client Data transmission
6
Socket for Server Socket(int domain, int type)
7
Socket for Client
8
Questions and Comment
9
Reference UDP communication What is Socket What is UDP
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.