Click here to Skip to main content
16,019,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: gracefully kill a process Pin
David Crow21-Feb-07 6:03
David Crow21-Feb-07 6:03 
AnswerRe: gracefully kill a process Pin
Jim Crafton21-Feb-07 13:46
Jim Crafton21-Feb-07 13:46 
GeneralRe: gracefully kill a process [modified] Pin
Jeroen Walter21-Feb-07 21:28
Jeroen Walter21-Feb-07 21:28 
QuestionRe: gracefully kill a process Pin
David Crow22-Feb-07 2:25
David Crow22-Feb-07 2:25 
AnswerRe: gracefully kill a process Pin
Jim Crafton22-Feb-07 3:28
Jim Crafton22-Feb-07 3:28 
GeneralRe: gracefully kill a process Pin
David Crow22-Feb-07 5:54
David Crow22-Feb-07 5:54 
Questionrecvfrom with less than available bytes Pin
Dave_21-Feb-07 4:02
Dave_21-Feb-07 4:02 
AnswerRe: recvfrom with less than available bytes Pin
James R. Twine21-Feb-07 7:05
James R. Twine21-Feb-07 7:05 
   The second person is right on - when dealing with UDP you will get the data you ask for and any remaining data in the datagram/message/packet is lost.  That is the way things work with a "unreliable protocol" like UDP.

   I would suggest using a larger buffer, copying all available data to that buffer, and you can then look at that buffer for additional data if required.

   Note that if the data is serial, you likely want to get it in order.  If you send multiple UDP packets, they may arrive out-of-order, or some may not arrive at all.  You will want to use TCP sockets if that is going to be a problem.

   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: recvfrom with less than available bytes Pin
Dave_21-Feb-07 9:59
Dave_21-Feb-07 9:59 
AnswerRe: recvfrom with less than available bytes Pin
Mark Salsbery21-Feb-07 8:25
Mark Salsbery21-Feb-07 8:25 
GeneralRe: recvfrom with less than available bytes Pin
James R. Twine21-Feb-07 8:38
James R. Twine21-Feb-07 8:38 
GeneralRe: recvfrom with less than available bytes Pin
Mark Salsbery21-Feb-07 8:53
Mark Salsbery21-Feb-07 8:53 
Questioncoding 0f this output Pin
bushxee21-Feb-07 3:51
bushxee21-Feb-07 3:51 
AnswerRe: coding 0f this output Pin
toxcct21-Feb-07 3:56
toxcct21-Feb-07 3:56 
GeneralRe: coding 0f this output Pin
Newbie0021-Feb-07 4:13
Newbie0021-Feb-07 4:13 
GeneralRe: coding 0f this output Pin
bushxee21-Feb-07 4:46
bushxee21-Feb-07 4:46 
GeneralRe: coding 0f this output Pin
toxcct21-Feb-07 4:48
toxcct21-Feb-07 4:48 
GeneralRe: coding 0f this output Pin
bushxee21-Feb-07 4:39
bushxee21-Feb-07 4:39 
GeneralRe: coding 0f this output Pin
toxcct21-Feb-07 4:44
toxcct21-Feb-07 4:44 
GeneralRe: coding 0f this output Pin
ThatsAlok21-Feb-07 5:54
ThatsAlok21-Feb-07 5:54 
GeneralRe: coding 0f this output Pin
toxcct21-Feb-07 5:57
toxcct21-Feb-07 5:57 
GeneralRe: coding 0f this output Pin
Hamid Taebi21-Feb-07 5:48
professionalHamid Taebi21-Feb-07 5:48 
GeneralRe: coding 0f this output Pin
ThatsAlok21-Feb-07 5:54
ThatsAlok21-Feb-07 5:54 
JokeRe: coding 0f this output Pin
James R. Twine21-Feb-07 6:57
James R. Twine21-Feb-07 6:57 
GeneralRe: coding 0f this output Pin
kakan21-Feb-07 19:34
professionalkakan21-Feb-07 19:34 

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.