Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Thanks for your help so far Mark. I hope this code snippet gives you an idea for a solution:

TIMEVAL tv;
tv.tv_sec=0;
tv.tv_usec=5;
FD_ZERO(&clientSet);
FD_SET(theClient->sock,&clientSet);

if ((errCode=select(0,&clientSet,NULL,NULL,&tv))>0)
{
if ((recvMsgSize=recv(theClient->sock,addBuffer,maxRead,0))<=0)
{
//error handling
...
}
else
message handling...

I do not receive an error or a message. Select() returns only timeout.

Flo
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 
GeneralRe: File format Pin
David Crow26-Jan-07 6:13
David Crow26-Jan-07 6:13 
AnswerRe: File format Pin
David Crow26-Jan-07 6:15
David Crow26-Jan-07 6:15 
AnswerRe: File format Pin
Michał Zalewski26-Jan-07 9:49
Michał Zalewski26-Jan-07 9:49 
QuestionSelect User dialog Pin
Ami Bar26-Jan-07 5:04
Ami Bar26-Jan-07 5:04 

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.