Click here to Skip to main content
15,907,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: win32 api Pin
Chris Losinger26-Jan-07 10:11
professionalChris Losinger26-Jan-07 10:11 
AnswerRe: win32 api Pin
Hamid_RT27-Jan-07 2:08
Hamid_RT27-Jan-07 2:08 
QuestionStreaming ZIP data and linker problem Pin
jhinze26-Jan-07 9:45
jhinze26-Jan-07 9:45 
AnswerRe: Streaming ZIP data and linker problem Pin
Mark Salsbery26-Jan-07 11:21
Mark Salsbery26-Jan-07 11:21 
Questiongmon.out File Pin
compmaniac26-Jan-07 8:50
compmaniac26-Jan-07 8:50 
QuestionRe: gmon.out File Pin
David Crow26-Jan-07 9:15
David Crow26-Jan-07 9:15 
AnswerRe: gmon.out File Pin
compmaniac26-Jan-07 9:20
compmaniac26-Jan-07 9:20 
QuestionTcp/Ip send() does sometimes not succeed Pin
Dee Veloper26-Jan-07 5:48
Dee Veloper26-Jan-07 5:48 
Hi!

I am currently programming server/client stuff with the c++ functions send and recv. Normally everything works fine but sometimes the client tells me it has sent a message successfully but it is not received by the server. I tracked the packets in the network and no packet had been sent. Documentation says not every successful call to send() guarantees that the data is received by the client. Unfortunately the packet is never sent (waited up to 3 minutes). Since Tcp/Ip is a reliable protocol, I expected the packets to be received by the client as long as the connection is not terminated. How can I make sure that send really sends my data? Is there a flush() command? (using Tcp/Ip non blocking windows socket, checking for send/receive with select).

Any help would be greatly appreciated!!!

Thx
Flo

P.S. Before you ask: it has to be c++ send and recv - no MFC or C# stuff...
AnswerRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 6:05
Mark Salsbery26-Jan-07 6:05 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Dee Veloper26-Jan-07 6:13
Dee Veloper26-Jan-07 6:13 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 6:25
Mark Salsbery26-Jan-07 6:25 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Dee Veloper26-Jan-07 6:39
Dee Veloper26-Jan-07 6:39 
QuestionRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 7:00
Mark Salsbery26-Jan-07 7:00 
AnswerRe: Tcp/Ip send() does sometimes not succeed Pin
Dee Veloper26-Jan-07 7:09
Dee Veloper26-Jan-07 7:09 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 7:21
Mark Salsbery26-Jan-07 7:21 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Dee Veloper26-Jan-07 7:39
Dee Veloper26-Jan-07 7:39 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 7:50
Mark Salsbery26-Jan-07 7:50 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mike O'Neill26-Jan-07 10:33
Mike O'Neill26-Jan-07 10:33 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 10:42
Mark Salsbery26-Jan-07 10:42 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 10:47
Mark Salsbery26-Jan-07 10:47 
AnswerRe: Tcp/Ip send() does sometimes not succeed [modified] Pin
Eytukan26-Jan-07 7:11
Eytukan26-Jan-07 7:11 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Mark Salsbery26-Jan-07 7:15
Mark Salsbery26-Jan-07 7:15 
GeneralRe: Tcp/Ip send() does sometimes not succeed Pin
Eytukan26-Jan-07 7:18
Eytukan26-Jan-07 7:18 
QuestionFile format [modified] Pin
dellthinker26-Jan-07 5:43
dellthinker26-Jan-07 5:43 
AnswerRe: File format Pin
Reagan Conservative26-Jan-07 6:02
Reagan Conservative26-Jan-07 6:02 

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.