Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRotate Bytes Pin
big_denny_2007-Apr-06 5:56
big_denny_2007-Apr-06 5:56 
AnswerRe: Rotate Bytes Pin
Richard Andrew x647-Apr-06 6:05
professionalRichard Andrew x647-Apr-06 6:05 
GeneralRe: Rotate Bytes Pin
David Crow7-Apr-06 8:30
David Crow7-Apr-06 8:30 
GeneralRe: Rotate Bytes Pin
Richard Andrew x647-Apr-06 8:58
professionalRichard Andrew x647-Apr-06 8:58 
QuestionDLL - Multithreading Pin
borono7-Apr-06 5:40
borono7-Apr-06 5:40 
AnswerRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 5:58
professionalRichard Andrew x647-Apr-06 5:58 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 6:09
borono7-Apr-06 6:09 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 6:21
professionalRichard Andrew x647-Apr-06 6:21 
borono wrote:
The thread is processing packet data as it comes off the wire.


Well what do you mean by "the wire?" Is the thread talking directly to a device driver? Are you referring to TCP/IP sockets? There are numerous examples of how to accomplish overlapped I/O with TCP/IP sockets.

The theory with overlapped I/O, is that you create a worker thread that enters a wait state, waiting for data to arrive on one or more sockets. When the system alerts the thread that data has arrived, then the thread wakes up, and performs the necessary processing.

Just look up Overlapped IO in the MSDN. If you have questions about implementing it in your DLL, I and many others on this board can help you with that.

Rich
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 7:01
borono7-Apr-06 7:01 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 7:16
professionalRichard Andrew x647-Apr-06 7:16 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 7:46
borono7-Apr-06 7:46 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 8:01
professionalRichard Andrew x647-Apr-06 8:01 
AnswerRe: DLL - Multithreading Pin
Waldermort7-Apr-06 7:48
Waldermort7-Apr-06 7:48 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 8:27
borono7-Apr-06 8:27 
GeneralRe: DLL - Multithreading Pin
Richard Andrew x647-Apr-06 9:04
professionalRichard Andrew x647-Apr-06 9:04 
GeneralRe: DLL - Multithreading Pin
borono7-Apr-06 11:58
borono7-Apr-06 11:58 
QuestionAlternative Shell for Windows Pin
Richard Andrew x647-Apr-06 5:15
professionalRichard Andrew x647-Apr-06 5:15 
AnswerRe: Alternative Shell for Windows Pin
James Brown7-Apr-06 6:31
James Brown7-Apr-06 6:31 
QuestionSetting a timer Pin
LCI7-Apr-06 4:54
LCI7-Apr-06 4:54 
AnswerRe: Setting a timer Pin
jhwurmbach7-Apr-06 5:20
jhwurmbach7-Apr-06 5:20 
QuestionRe: Setting a timer Pin
David Crow7-Apr-06 5:24
David Crow7-Apr-06 5:24 
AnswerRe: Setting a timer Pin
LCI7-Apr-06 5:45
LCI7-Apr-06 5:45 
Questionchain code Pin
izzah_mustapha7-Apr-06 4:28
izzah_mustapha7-Apr-06 4:28 
AnswerRe: chain code Pin
toxcct7-Apr-06 4:41
toxcct7-Apr-06 4:41 
AnswerRe: chain code Pin
Chris Losinger7-Apr-06 4:44
professionalChris Losinger7-Apr-06 4:44 

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.