Click here to Skip to main content
14,424,701 members

C / C++ / MFC

 
GeneralRe: recv no blocking Pin
mosine29-Jun-15 23:21
Membermosine29-Jun-15 23:21 
GeneralRe: recv no blocking Pin
CPallini29-Jun-15 23:35
mveCPallini29-Jun-15 23:35 
GeneralRe: recv no blocking Pin
mosine29-Jun-15 23:52
Membermosine29-Jun-15 23:52 
GeneralRe: recv no blocking Pin
CPallini30-Jun-15 0:01
mveCPallini30-Jun-15 0:01 
GeneralRe: recv no blocking Pin
mosine30-Jun-15 0:06
Membermosine30-Jun-15 0:06 
GeneralRe: recv no blocking Pin
CPallini30-Jun-15 0:24
mveCPallini30-Jun-15 0:24 
GeneralRe: recv no blocking Pin
Daniel Pfeffer30-Jun-15 9:12
professionalDaniel Pfeffer30-Jun-15 9:12 
GeneralRe: recv no blocking Pin
Albert Holguin30-Jun-15 14:26
professionalAlbert Holguin30-Jun-15 14:26 
Daniel Pfeffer wrote:
IMO, a multithreaded blocking recv() implementation is conceptually much simpler than a non-blocking recv() implementation.

Yep, and it works really well... just be careful for hanging sockets in Linux.


Daniel Pfeffer wrote:
If you only have one physical machine, I suggest installing Windows in a virtual machine, and running one of the tasks there. That would ensure that the platforms are separate, and would help you to track down the 100% CPU issue.

This might actually yield the same result. The issue is the super low latency in the network when everything is co-located. Essentially if you're tx and rx run as fast as possible, it could take up all the CPU time available.

modified 30-Jun-15 19:41pm.

GeneralRe: recv no blocking Pin
Daniel Pfeffer30-Jun-15 18:53
professionalDaniel Pfeffer30-Jun-15 18:53 
GeneralRe: recv no blocking Pin
Albert Holguin1-Jul-15 5:02
professionalAlbert Holguin1-Jul-15 5:02 
GeneralRe: recv no blocking Pin
Albert Holguin30-Jun-15 14:27
professionalAlbert Holguin30-Jun-15 14:27 
QuestionCan a modeless Dialog Box be a main window "m_pMainWnd" Pin
ForNow29-Jun-15 6:07
MemberForNow29-Jun-15 6:07 
AnswerRe: Can a modeless Dialog Box be a main window "m_pMainWnd" Pin
Richard MacCutchan29-Jun-15 6:12
communityengineerRichard MacCutchan29-Jun-15 6:12 
GeneralRe: Can a modeless Dialog Box be a main window "m_pMainWnd" Pin
ForNow29-Jun-15 6:22
MemberForNow29-Jun-15 6:22 
QuestionCan anybody help me with converting this example for x64? Pin
Member 802436529-Jun-15 3:42
MemberMember 802436529-Jun-15 3:42 
SuggestionRe: Can anybody help me with converting this example for x64? Pin
Richard MacCutchan29-Jun-15 4:36
communityengineerRichard MacCutchan29-Jun-15 4:36 
QuestionQ: CTreeCtrl: How to over-ride default selection of item Pin
ShivaPrasadGadapa29-Jun-15 0:43
MemberShivaPrasadGadapa29-Jun-15 0:43 
QuestionDraw in front of bitmap Pin
lor7527-Jun-15 9:11
Memberlor7527-Jun-15 9:11 
AnswerRe: Draw in front of bitmap Pin
Richard MacCutchan27-Jun-15 22:11
communityengineerRichard MacCutchan27-Jun-15 22:11 
GeneralRe: Draw in front of bitmap Pin
lor7527-Jun-15 23:22
Memberlor7527-Jun-15 23:22 
QuestionClass or object? Pin
Vaclav_26-Jun-15 6:32
MemberVaclav_26-Jun-15 6:32 
SuggestionRe: Class or object? Pin
David Crow26-Jun-15 6:54
MemberDavid Crow26-Jun-15 6:54 
AnswerRe: Class or object? Pin
Maximilien26-Jun-15 8:24
MemberMaximilien26-Jun-15 8:24 
AnswerRe: Class or object? Pin
CPallini26-Jun-15 9:05
mveCPallini26-Jun-15 9:05 
GeneralRe: Class or object? Pin
Albert Holguin26-Jun-15 11:26
professionalAlbert Holguin26-Jun-15 11:26 

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.