Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: W2A query Pin
Michael Dunn30-May-02 5:28
sitebuilderMichael Dunn30-May-02 5:28 
GeneralRe: W2A query Pin
Nish Nishant30-May-02 15:00
sitebuilderNish Nishant30-May-02 15:00 
GeneralVC++ timer and multithreading problems Pin
29-May-02 21:11
suss29-May-02 21:11 
GeneralRe: VC++ timer and multithreading problems Pin
KarstenK29-May-02 23:26
mveKarstenK29-May-02 23:26 
GeneralData Transfer - Help!!! Pin
Sameer Maggon29-May-02 20:29
Sameer Maggon29-May-02 20:29 
GeneralRe: Data Transfer - Help!!! Pin
Ed Gadziemski30-May-02 11:25
professionalEd Gadziemski30-May-02 11:25 
GeneralSorting Pin
29-May-02 19:42
suss29-May-02 19:42 
QuestionHow does CAsyncSocket start it's notification loop? Pin
29-May-02 18:41
suss29-May-02 18:41 
Hi,
I wonder how the internal CAsyncSocket message loop works?

Basically I understand that a asychronous network class regular checks sockets for changes and calls a corresponding notification handler. This is done in CAsyncSocket::DoCallBack() (file Sockcore.cpp). The first attached socket handle creates a CWnd (with window name "Socket Notification Sink"). With some message spying I found out WM_SOCKET_NOTIFY is regular send to this internal window and calls CAsyncSocket::DoCallBack().

Unfortunately, the message routing isn't easy to understand (mixture of CAsyncSocket and CSocket). My questions:

How is the first WM_SOCKET_NOTIFY send?
Who keeps he notification loop alive (who and how often sends further WM_SOCKET_NOTIFY)?

Thx for help, Moak Laugh | :laugh:
AnswerRe: How does CAsyncSocket start it's notification loop? Pin
Joaquín M López Muñoz29-May-02 19:53
Joaquín M López Muñoz29-May-02 19:53 
GeneralRe: Thx (How does CAsyncSocket start it's notification loop?) Pin
29-May-02 20:30
suss29-May-02 20:30 
GeneralCListCtrl Overlay Images. Pin
myfriendofmisery29-May-02 18:40
myfriendofmisery29-May-02 18:40 
GeneralRe: CListCtrl Overlay Images. Pin
Shog929-May-02 19:30
sitebuilderShog929-May-02 19:30 
GeneralTAPI Pin
Sameer Maggon29-May-02 18:34
Sameer Maggon29-May-02 18:34 
GeneralRe: TAPI Pin
Michael P Butler29-May-02 22:01
Michael P Butler29-May-02 22:01 
GeneralMessage Queue and Threads Pin
wilche29-May-02 17:51
wilche29-May-02 17:51 
GeneralRe: Message Queue and Threads Pin
Prem Kumar29-May-02 18:28
Prem Kumar29-May-02 18:28 
GeneralRe: Message Queue and Threads Pin
wilche30-May-02 13:52
wilche30-May-02 13:52 
GeneralRe: Message Queue and Threads Pin
Bill Wilson30-May-02 12:12
Bill Wilson30-May-02 12:12 
GeneralRe: Message Queue and Threads Pin
wilche30-May-02 13:48
wilche30-May-02 13:48 
GeneralPassing Pointer Between DLL & App Pin
29-May-02 17:08
suss29-May-02 17:08 
GeneralRe: Passing Pointer Between DLL & App Pin
Joaquín M López Muñoz29-May-02 19:47
Joaquín M López Muñoz29-May-02 19:47 
GeneralRe: Passing Pointer Between DLL & App Pin
29-May-02 21:09
suss29-May-02 21:09 
GeneralRe: Passing Pointer Between DLL & App Pin
29-May-02 21:14
suss29-May-02 21:14 
GeneralRe: Passing Pointer Between DLL & App Pin
29-May-02 21:35
suss29-May-02 21:35 
GeneralWho Pin
chen29-May-02 17:13
chen29-May-02 17:13 

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.