TheeAriGrande
Regular Member
- Jul 14, 2013
- 270
- 154
I just began coding my first bot this morning. I'm planning to have proxy support, multi-threading support, process logging, etc. I have a few questions that I'd love answered, if you guys don't mind. By the way, I'm coding in C#.
How should I go about multi-threading? My thoughts say that I should have a thread pool.
How should I actually process a file of proxies (or usernames/passwords)? I'm thinking that the file should be processed, the data validated, and then the data added to a list. From there, a method would add the list into a queue for the thread pool.
I've been coding PHP for years now, and have been creating and using object oriented code for about a year. In PHP the script would usually process a file into and array and use a loop to do call the same method over and over again with different parameters. Would this somehow apply to C# to? The only thing different would be this: loop over a list of data and add the method with it's parameters to the thread pool queue?
I've done tons of searches on google, been at it for a few hours during the day. I couldn't find anything solid. Any help would be appreciated, even the tiniest bit.
All the best, tAG.
How should I go about multi-threading? My thoughts say that I should have a thread pool.
How should I actually process a file of proxies (or usernames/passwords)? I'm thinking that the file should be processed, the data validated, and then the data added to a list. From there, a method would add the list into a queue for the thread pool.
I've been coding PHP for years now, and have been creating and using object oriented code for about a year. In PHP the script would usually process a file into and array and use a loop to do call the same method over and over again with different parameters. Would this somehow apply to C# to? The only thing different would be this: loop over a list of data and add the method with it's parameters to the thread pool queue?
I've done tons of searches on google, been at it for a few hours during the day. I couldn't find anything solid. Any help would be appreciated, even the tiniest bit.
All the best, tAG.
Last edited: