![]() |
|
[C#] Single Thread > Multi Thread - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Single Thread > Multi Thread (/showthread.php?tid=3429085) |
Single Thread > Multi Thread - bmr03 - Apr 22, 2013 Is there an easy way to quickly make my TCP Client\Server multi threaded? I have a basic understanding of what it is, but it would be easier if someone could explain it, and maybe tell me how I could take the code for a single threaded TCP Client\Server and make it multi threaded. Thanks in advanced! 👍 * - flameswor10 - Apr 22, 2013 This is an in-depth explanation from MSDN. Remember to google your problems before asking! Code using System;Output: Code [VB, C++, C#]Reference: http://msdn.microsoft.com/en-AU/library/system.threading.thread.aspx I think this should explain it fully. If not, post what you're unsure about and I'll help you figure it out. * - ismellike - Apr 22, 2013 I dont know if this is what you were asking, but this is what I do for multi threading. Code Thread threadName = new Thread(new ThreadStart(delegateWhat the delegate does is that it pretty much just starts the threading and then continues the rest of the code. * - bmr03 - Apr 22, 2013 Thanks for both of your guy's help, this was for my RAT so if you want PM me and I will give you a free copy when I finish it. * - BaussHacker - Apr 22, 2013 Yes. Using asynchronous sockets would be your best shot. https://hackforums.net/showthread.php?tid=2962387 |