-
Jan 28th, 2012, 04:21 PM
#1
Thread Starter
New Member
Multithreaded proxy checker
So I started writing proxy checker, I figured out responses from proxyjudge etc. but next step makes my head hurts...
Multithreading based on 20 connections at time with replacing finished with new one...
So basically Im trying to create 20 threads that will work on connect function.
I already tried 2 function with threading like this(pseudocode) ->
Code:
Thread[] ts=new Thread[20]
for(i=0;i<20;i++)
ts[i]=new Thread(connect)
ts[i].start()
But in that method I couldn`t figure out how to make them work on next proxies with return stuff, so I tried to make "connect" to return the class(structure) with results, 2 fails in this method -> couldn`t get like i said to go with next 20 proxies, could get results in proper way
2nd function ->
I used threadpool but I could make it asynchronous to make thread wait for return from httpwebrequest...
If anyone have idea how to deal with that please post it
ps. I want to make something similar to "Charon" -> project2025 site
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|