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! 👍
|
C#
Single Thread > Multi Thread |
|
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/...hread.aspx I think this should explain it fully. If not, post what you're unsure about and I'll help you figure it out.
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.
Yes. Using asynchronous sockets would be your best shot.
https://hackforums.net/showthread.php?tid=2962387 |
|
|

