New Member FAQ
Posting Guidelines
Help Topics
Revenue Sharing
Learn Hindi
S
pecial
R
eferral
P
rogramme
: Refer your Friends and Earn upto Rs.500 .
Know more..
MP Forum
MP Resources
Jobs in MP
MP Education
MP Tourism
MP Information
Bookmarks
|
Members
|
Practice Tests
|
Polls
|
New Posts
|
Resources
»
Madhya Pradesh Education
»
General Educational Information
Let Us Know About User Datagram Protocol
Posted Date:
12-Mar-2011
Category:
General Educational Information
Rating:
Author:
roopa
Member Level:
Silver
Points
: 15 (
Rs
5)
This resource contain the information about User Datagram Protocol.
User Datagram Protocol
User Datagram Protocol is used in transmission of data from one application to another application through socket. The User Datagram Protocol is a subset of Transmission Control Protocol (TCP) / Internet Protocol (IP).
The fixed size data of byte type is transmitted through User Datagram Protocol. This data is termed as datagram packet. The datagram packet consists of data fixed size and address of remote locates. The destination packet automatically locates the destination on which another application is running. There is no concept of server or client application but requires two application of which one application transmits the data at one end and other application receives the data on another end. The User Datagram Protocol application is not considered reliable for transmitting and receiving the data packets.
User Datagram Protocol is developed by following two classes in java the application
1. Java.net. Datagram Packet class
2. Java.net. Datagram Socket class
Datagram Packet class
This class denotes the packet object that she'll be transmitted or received by DatagramPacket object.
Methods of DatagramPacket class:-
1.
Byte[] getData()
This method returns the data in byte Array format.
2.
int getLength()
This method returns the length or size of byte Array data.
3.
int getPort()
This method returns the port number of remote application.
4.
InetAddress getAddress()
This method returns the address IP of remote application.
DatagramSocket class
The object of this class is used to create a port and then transmit or receive a data in the form of DatagramPacket object.
Method of DatagramSocket class:-
1.
Void send(DatagramPacket obj)
This method is used to transmit the data in the form of DatagramPacket object.
2.
Void receive(DatagramPacket obj)
This method is called by invoking DatagramSocket object to receive the datagramPacket object that transmitted from another end.
Did you like this resource? Share it with your friends and show your love!
Tweet
Share
Read related articles:
UDP
Computer Networks
Responses to "Let Us Know About User Datagram Protocol"
No responses found. Be the first to respond...
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Information About Generic Servlet Class in Java.
Previous Resource:
How to write quality articles?
Return to Resources
Post New Resource
Category:
General Educational Information
Post resources and
earn money
!
More Resources
Information About Generic Servlet Class in Java.
Information About Servlet Interface and life cycle Methods in Java.
Information About ServletResponse Interface and Their Initiation Methods in Java.
Information About ServletRequest Interface and Their Initiation Methods in Java.
Let Us Know About Servlet in Java.
Let Us Know About E-Commerce
Popular Tags
Tag posting guidelines
Search Tags
User Datagram Protocol.
.
Contests on MPSpider
Resource contest: MP Entrance Exam Preparation
Want Email Alerts?
Get Jobs by Email
Forum posts by Email
Articles by Email
My Profile
Sign In
Register
AdSense Revenue
Online members
Akanksha P.V
More...
Active Members
Today
Last 7 Days
Suchithra S
(86)
Hakimuddin
(74)
AMIT TIWARI
(21)
more...
Areas
Anuppur
Ashok Nagar
Balaghat
Barwani
Betul
Bhind
Bhopal
Burhanpur
Chhatarpur
Chhindwara
Damoh
Datia
Dewas
Dhar
Dindori
Guna
Gwalior
Harda
Hoshangabad
Indore
Jabalpur
Jhabua
Katni
Khandwa
Khargone
Mandla
Mandsaur
Morena
Narsinghpur
Neemuch
Panna
Raisen
Rajgarh
Ratlam
Rewa
Sagar
Satna
Sehore
Seoni
Shahdol
Shajapur
Sheopur
Shivpuri
Sidhi
Tikamgarh
Ujjain
Umaria
Vidisha
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
Revenue Sharing sites
Advertise
Talk to
Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2011 All Rights Reserved.