Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: The difference between new and malloc function PinPopular
CPallini19-Nov-10 22:28
mveCPallini19-Nov-10 22:28 
AnswerRe: The difference between new and malloc function PinPopular
Aescleal19-Nov-10 23:36
Aescleal19-Nov-10 23:36 
AnswerRe: The difference between new and malloc function Pin
«_Superman_»22-Nov-10 7:15
professional«_Superman_»22-Nov-10 7:15 
Questiongfh Pin
kongdl19-Nov-10 21:09
kongdl19-Nov-10 21:09 
QuestionHow to call DoDataExchange() of a property page at runtime Pin
lakshman rao19-Nov-10 21:00
lakshman rao19-Nov-10 21:00 
AnswerRe: How to call DoDataExchange() of a property page at runtime Pin
KingsGambit21-Nov-10 17:13
KingsGambit21-Nov-10 17:13 
AnswerRe: How to call DoDataExchange() of a property page at runtime Pin
«_Superman_»22-Nov-10 7:11
professional«_Superman_»22-Nov-10 7:11 
Questiontimeout problem Pin
ALLERSLIT19-Nov-10 10:35
ALLERSLIT19-Nov-10 10:35 
Hey,
this is my code:
connect(s, (SOCKADDR*) &addrin, sizeof(addrin));

send(s, stRequest.c_str(), stRequest.length(), 0);
cout << "stRequest sent." << endl;
recv(s, buffer, sizeof(buffer), 0);
cout << "buffer received." << endl;


Now this works perfectly fine if the webserver is working well, but sometimes it just sits there trying to recv() forever..
Iam not exactly sure what causes it but either way, I need a way to set a timeout or something similiar..
I couldn't really find something helpfull on google, so yea I thought maybe you guys could help me out.
AnswerRe: timeout problem Pin
«_Superman_»19-Nov-10 11:44
professional«_Superman_»19-Nov-10 11:44 
AnswerRe: timeout problem Pin
Moak19-Nov-10 14:26
Moak19-Nov-10 14:26 
QuestionlineOpen() problem in TAPI Pin
AmbiguousName19-Nov-10 8:20
AmbiguousName19-Nov-10 8:20 
QuestionRe: lineOpen() problem in TAPI Pin
CPallini19-Nov-10 9:09
mveCPallini19-Nov-10 9:09 
AnswerRe: lineOpen() problem in TAPI Pin
AmbiguousName19-Nov-10 20:38
AmbiguousName19-Nov-10 20:38 
GeneralRe: lineOpen() problem in TAPI Pin
Richard MacCutchan19-Nov-10 22:36
mveRichard MacCutchan19-Nov-10 22:36 
QuestionRe: lineOpen() problem in TAPI Pin
CPallini19-Nov-10 22:40
mveCPallini19-Nov-10 22:40 
QuestionExecuting a usermode program from a driver? Pin
Member 469267019-Nov-10 3:36
Member 469267019-Nov-10 3:36 
AnswerRe: Executing a usermode program from a driver? Pin
Luc Pattyn19-Nov-10 6:58
sitebuilderLuc Pattyn19-Nov-10 6:58 
AnswerRe: Executing a usermode program from a driver? Pin
«_Superman_»19-Nov-10 7:19
professional«_Superman_»19-Nov-10 7:19 
QuestionRe: Executing a usermode program from a driver? Pin
CPallini19-Nov-10 9:06
mveCPallini19-Nov-10 9:06 
AnswerRe: Executing a usermode program from a driver? Pin
Member 469267019-Nov-10 10:50
Member 469267019-Nov-10 10:50 
QuestionThe best way to use worker thread to connect to an database Pin
mesajflaviu19-Nov-10 3:01
mesajflaviu19-Nov-10 3:01 
AnswerRe: The best way to use worker thread to connect to an database Pin
David Crow19-Nov-10 4:13
David Crow19-Nov-10 4:13 
GeneralRe: The best way to use worker thread to connect to an database Pin
mesajflaviu19-Nov-10 6:44
mesajflaviu19-Nov-10 6:44 
GeneralRe: The best way to use worker thread to connect to an database Pin
David Crow19-Nov-10 7:43
David Crow19-Nov-10 7:43 
GeneralRe: The best way to use worker thread to connect to an database Pin
mesajflaviu19-Nov-10 8:23
mesajflaviu19-Nov-10 8:23 

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.