View Single Post
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