How do i move the result to another thread

Hello, i'm a beginner to c# and my english is not very great, so reading doc is not always to helpful.

Could someone answer some of these questions 1. How do i move the result of this tcp.RemoteEndPoint.Address will return the ip of a port, how can i then use this result in a different thread / code? This is the code i want the result inside

  1. Using the example in a repeating timer creates way to many open ports and not close fast enough so user end up with 100+/- open connection to the port, is there different way im can do this? Can i force the connection to close faster?

by wildsushiroll via /r/csharp

Leave a Reply