CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2000
    Location
    Wi, USA
    Posts
    144

    [RESOLVED] CSocketPlus 1.1 bug - Connect Event never fires

    Is it just me, or is there a bug in the awesome CSocketPlus Class.

    I try the sample "Multi Socket TCP Chat" Project that works just splendidly, but I the _Connect Event never gets fired on connect.


    I traced the bug down to the CSocketPlus.cls, PostSocket function.

    The code block responsible for firing this event is in the Select Case FD_CONNECT.

    This function never gets called when the CSocketPlus Object actually does connect.

    I have a cheezy workaround, piggybacking off the FD_ACCEPT function, but would rather fix the problem.

    Anyone else know about this?

    Great Class either way.

    Dave

  2. #2
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: CSocketPlus 1.1 bug - Connect Event never fires

    I'm not familiar with the CSocketPlus class. Can you provide a link and also a link to the sample "Multi Socket TCP Chat" Project?

    Mike

  3. #3
    Join Date
    May 2000
    Location
    Wi, USA
    Posts
    144

    Re: CSocketPlus 1.1 bug - Connect Event never fires

    A: http://www.planetsourcecode.com/vb/s...54681&lngWId=1

    B: This may be less of a bug, and more of a feature, after further consideration. Basically, the _Connect Event does fire when a client has connected to a server. I was noticing the _Connect Event does not fire for a server, when a client connects to it. I may withdraw my claim that this is a bug.

  4. #4
    Join Date
    May 2000
    Location
    Wi, USA
    Posts
    144

    Re: CSocketPlus 1.1 bug - Connect Event never fires

    I wanted to be notified when a server had accepted a client's connection. I added a new Event, "Accepted". There is no bug, sorry for the confusion.

  5. #5
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: CSocketPlus 1.1 bug - Connect Event never fires

    Good, because it's a Visaul Basic OCX for which I can't help you.

    Mike

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