Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 1
There are 1 users currently browsing forums.
C and C++ Programming C and C++ are both robust and hugely popular programming languages that are used in multiple facets of programming, ranging from games to operating systems to simple text editors. To dicuss and seek advice, ask around here.

Reply
  #1  
Old 11-20-2009
vento's Avatar
Sexy monkey
 
Join Date: May 2009
Location: Lithuania
Age: 16
Posts: 185
Rep Power: 1
vento is on a distinguished road
Datagram Socket

So I understand what sockets are and what they are for and how to use them. But there is one big '?'. There's such socket type as Datagram and in all references that it has a possibility of losing or receiving data in wrong order. I've seen on one reference that it can even duplicate! That's something I don't get. In computers science I understand that the data is sent from one side of wire and then received at the other side of wire and it continues until it reaches the final computer. So how is it possible that data is lost? Actually after reading all those reference is that data is more likely to be lost and that's why other socket types use one or another protocol to avoid this.

So, again, how does it come that you can lose data?

P.S. I understand the case when the kernel or whatever other part refuses the data (like the port is closed), but let's say all ports are open and ready to be used.
__________________

How to set up portable C++ IDE (Dev-C++)

Writing in C or C++ is like running a chain saw with all the safety guards removed," — Bob Gray.
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket Programming phasex General Programming 7 10-27-2008 04:59 PM
socket tralfas C and C++ Programming 3 12-08-2007 01:57 PM
HTTP Socket Class aliasxneo Share a PHP Script 1 01-18-2007 09:18 PM
Socket connection? Jodi C and C++ Programming 2 08-25-2006 05:54 AM
socket based programming computer Java Programming 2 02-19-2006 04:54 PM