Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
ALLERSLIT wrote:
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..


There are multiple choices:

- adjust the send/receive timeouts with setsockopt(), see SO_SNDTIMEO and SO_RCVTIMEO

- use non-blocking/asynchronous sockets, makes event based applications so much easier
- use a C++ networking library/API offering timeouts or search for a HTTP client class, would be my recommendation


Happy coding! Smile | :)

Chat in Europe Java | [Coffee] Now with 24% more Twitter

modified on Friday, November 19, 2010 8:40 PM

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 
QuestionSorting CListCtrl with group view enabled Pin
Paul201319-Nov-10 1:20
Paul201319-Nov-10 1:20 
AnswerRe: Sorting CListCtrl with group view enabled Pin
Richard MacCutchan19-Nov-10 2:53
mveRichard MacCutchan19-Nov-10 2:53 

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.