Hack Forums
[.NET] C# reverse connection - 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: [.NET] C# reverse connection (/showthread.php?tid=5852950)



C# reverse connection - JuanKih - Jun 22, 2018

Hello I have a source of a reverse connection Client / Server and I would like to do so that when I close the server and reopen it reconnects the client, only the connection works when I have the server open and if I restart the server does not reconnect the server client, could you explain what to do ???


RE: C# reverse connection - gigajew - Jun 24, 2018

You could do one of two things, you could set a thread that checks the connection status repeatedly. Or second you could get the SocketErrorCode when the client attempts to send something, and have it reconnect