Total members 9952 | Gratitudes |It is currently Sat Feb 11, 2012 1:58 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Topic
 Topic subject: What are Datagrams and Sockets?
PostPosted: Thu Oct 16, 2008 7:36 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2103
Location: Earth
Has thanked: 39 time
Have thanks: 57 time

A socket represents a connection point into a TCP/IP network between two computers; one of which is the server and the other is the client. Sockets are used to access the Web server. These sockets are available in the Java Socket class. Sockets act as virtual passageways for communication through which the data travels from one host to another. Sockets are of two types, connection-oriented or connectionless. The connection-oriented socket operates similarly to a telephone where the connection is established prior to the transmission of data. The second type of socket is the connectionless socket. This type of socket is called a Datagram. This socket operates similarly to the mail. A characteristic of the Datagram is that it allows only one message to be sent at a time. The delivery of data is not guaranteed because Datagrams use the UDP protocol.

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 apply SSL on Sockets  Java  Xline  5

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 2 guests



Jump to:  
Previous Topic | Next Topic 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team