CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    18

    CSocket and DoCallBack

    Hi!

    When does the DoCallback() of CSocket get called? I have a class derived from CSocket and I have a breakpoint in DoCallBack() and it doesn't break there at all. That might explain why my OnClose() is not getting called.

    Thanks,
    Chan

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    You shouldn't be using CSocket as its full of bugs and not reliable at all.

    Use CAsyncSocket (if you must), otherwise use raw winsock calls.

    Actually, if anyones reading, I'm surprised about the interest in WinSock all of a sudden. Maybe people are realising that DCOM isn't what it pertains to be and are using alternatives.

    Then again, this may all be linked to the net.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured