Visual Basic Winsock Array - Causing Headaches!

Discussion in 'Programming' started by expron, May 21, 2008.

  1. #1
    I am using VB 6.0 to try & accomplish this:

    I have the following controls & coding in place:

    Listbox1
    Listbox2
    Text String
    Winsock Control

    Here is what I am trying to do:

    List1(Proxy IP & Port) + List2(Domain Name) + Text String

    1.) I connect to a proxy server
    2.) I assemble a text string that sends a request to google & other sites for collecting stats for each domain in List2.

    This works fine, but it is very slow!

    So I made an array control for each above item. I coded it similiar to:

    Combo1 = 1 - 200
    X = Combo1.text

    Load Array:
    For X = 1 - 200
    Text String(X)
    Winsock(X)

    Great, now I thought I'd be able to scan 200 domains in the same time it takes to scan one.

    However, The script works fine, sending out all th estrings, using the correct winsock from the array etc..

    My problem is that when the winsock data arrival arrives, it isn't matching the Winsock(X) control. So basically, I am getting mixed results with the pagerank for some domains appearing next to the wrong domains in my list.

    Some proxies have a delay as they are public proxies & notoriously slow.

    I need to be able to tag the winsock events so that each result can be matched up to the appropriate domain.

    If anyone can shed some light on this, it will be greatly appreciated.

    Thanks!
     
    expron, May 21, 2008 IP