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

    Winsock control and asynchronous

    I am using the standart Winsock control provided in Vb6 to connect to other hosts on the net, but each connect freezes the application, is there a method in which I can make the Winsock control to asynchronous communication ? It really looks bad when the application freezes just to resolve a host name, what can I do ?

    tia


  2. #2
    Join Date
    Aug 2000
    Location
    Namibia
    Posts
    139

    Re: Winsock control and asynchronous

    The WinSock control is an asynchronous Control (the events are fired when a conneciton is made, data is received, etc).
    Check that you have the right Service Pack installed (NT4 SP6 fixed some WinSock problems). Check that your IP settings are correct.
    You can also use the getsockopt and setsockopt APIs to tweak the socket (check MSDN, Winsock 2 reference).
    I prefer using Winsock API functions instead (yep, I like getting dirty).
    Mail me, send Private Message, if you're still struggling.


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