Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2004, 02:22 PM   #16 (permalink)
Crow T. Robot
Registered User
 
Join Date: Nov 2004
Posts: 14
Crow T. Robot is on a distinguished road
Again, thanks for all the help. I'm now working on that first program I posted using datagrams. To answer your question, Belasarius, I'm not sure datagrams are the best way to do this, but this is required for an assignment I'm doing.
Crow T. Robot is offline   Reply With Quote
Old 11-29-2004, 02:32 PM   #17 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,174
Belisarius is on a distinguished road
That wasn't a rhetorical question. You have the possibility of dropping packets when using UDP, and unless you handle for that you'll never get them. Further, the packets you do receive might be out of order. TCP was designed as a reliable network protocol; you *will* get everything, in order, eventually. With UDP, you have no such assurances.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-29-2004, 02:48 PM   #18 (permalink)
Crow T. Robot
Registered User
 
Join Date: Nov 2004
Posts: 14
Crow T. Robot is on a distinguished road
Quote:
Originally Posted by Belisarius
That wasn't a rhetorical question. You have the possibility of dropping packets when using UDP, and unless you handle for that you'll never get them. Further, the packets you do receive might be out of order. TCP was designed as a reliable network protocol; you *will* get everything, in order, eventually. With UDP, you have no such assurances.
I'm pretty sure I'm supposed to use UDP. That's laid out specifically, and the coding I have so far was actually already laid out for us, for the most part.

But that is not priority for me right now. I can still understand how the program should be set up and get a good grade without the consequences of how sending packets turns out. And since I'm already 3 weeks late with the assignment, I'll make due with the basic structure of everything now.

Basically, I'm trying to find out the steps for finishing the program. For the server class, I know I must create some kind of loop to send 10 user entered messages the client, send each message as a datagram, get the client to handle each message as a thread, and append the messages in the datagram to a file and creating a file name.

Edit: I know basically what to do for the server. Hopefully.
Crow T. Robot is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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



All times are GMT -8. The time now is 01:30 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting