Click here to Skip to main content
15,917,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problem with CMap GetStartPosition() Pin
David Crow10-Jan-07 5:59
David Crow10-Jan-07 5:59 
QuestionWhat's the problem of my program? Pin
Ming Luo10-Jan-07 5:15
Ming Luo10-Jan-07 5:15 
AnswerRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 5:36
Roger Stoltz10-Jan-07 5:36 
GeneralRe: What's the problem of my program? Pin
PJ Arends10-Jan-07 6:02
professionalPJ Arends10-Jan-07 6:02 
GeneralRe: What's the problem of my program? Pin
Roger Stoltz10-Jan-07 6:11
Roger Stoltz10-Jan-07 6:11 
QuestionSending File Through UDP Pin
Girish60110-Jan-07 4:14
Girish60110-Jan-07 4:14 
AnswerRe: Sending File Through UDP Pin
Roger Stoltz10-Jan-07 4:36
Roger Stoltz10-Jan-07 4:36 
AnswerRe: Sending File Through UDP Pin
James R. Twine10-Jan-07 4:50
James R. Twine10-Jan-07 4:50 
   It is very similar, except that datagrams (UDP messages) have a maximum size, and there is no guaranteed delivery or sequencing/ordering of data.

   With TCP, if you send 128KB of data with a single call, internally it will be broken up (if necessary) into smaller packets (either on your system or possibly further down the network) that will be reassembled on the receiving system.

   With UDP, IIRC, if you try to send 32KB with a single call, only a certain amount of it will be sent (something like 1500 bytes, I think).  You will need to break up the data yourself into packets and send them one at a time.  Additionally, if you send 5 packets in a row (1,2,3,4,5), they may arrive on the other side out-of-sequence (1,2,4,5,3), or some may not make it at all (1,3,4,2 but no 5th datagram).

   Sending multiple-packets of data via UDP often requires that you implement your own packetizing logic so that you handle lost or out-of-sequence packets.

   Broadcast, point-to-point, point-to-multipoint or multicast has nothing to do with your using TCP or UDP, IIRC.  You can data using either style to a broadcast address (i.e. xxx.xxx.xxx.255), or to a multicast address (multicast router, for example).

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: Sending File Through UDP Pin
Tim Paaschen10-Jan-07 19:42
Tim Paaschen10-Jan-07 19:42 
GeneralRe: Sending File Through UDP Pin
James R. Twine11-Jan-07 13:38
James R. Twine11-Jan-07 13:38 
AnswerRe: Sending File Through UDP Pin
Eytukan10-Jan-07 4:56
Eytukan10-Jan-07 4:56 
QuestionWhat happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 3:18
KellyR10-Jan-07 3:18 
AnswerRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 3:38
Roger Stoltz10-Jan-07 3:38 
QuestionRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 4:01
KellyR10-Jan-07 4:01 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:12
mveCPallini10-Jan-07 4:12 
GeneralRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 4:18
KellyR10-Jan-07 4:18 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:15
Roger Stoltz10-Jan-07 4:15 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:21
mveCPallini10-Jan-07 4:21 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:30
Roger Stoltz10-Jan-07 4:30 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 4:36
mveCPallini10-Jan-07 4:36 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 4:42
Roger Stoltz10-Jan-07 4:42 
GeneralRe: What happens when I open a file with its &quot;default&quot; program? [modified] Pin
CPallini10-Jan-07 4:54
mveCPallini10-Jan-07 4:54 
GeneralRe: What happens when I open a file with its "default" program? Pin
KellyR10-Jan-07 5:35
KellyR10-Jan-07 5:35 
GeneralRe: What happens when I open a file with its "default" program? Pin
Roger Stoltz10-Jan-07 5:55
Roger Stoltz10-Jan-07 5:55 
GeneralRe: What happens when I open a file with its "default" program? Pin
CPallini10-Jan-07 8:16
mveCPallini10-Jan-07 8:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.