Async Sockets in a COM Dll/OCX
COM
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all I am trying to write an Asynchronous socket in an ocx. I have generated the MFC wizard ocx and created 2 new classes -- connect & listen, both derived from CAsyncSocket. From the xxxApp.cpp, I have created the Main Socket which listens to accept connects from clients. I made a call to "WSAAsyncSelect(MainSok,wind->m_hWnd , WM_USER+1,FD_ACCEPT | FD_READ); " also. But I am unable to capture the events to start reading wot is being written to my socket. I have also written code in the OnAccept of my MainSocket to accept connections. But this routine is not being called. How do I now receive data asynchronously??? Please help. Thanks in advance Cheers Raja