Send Data

This commit is contained in:
2021-08-02 23:01:18 +05:00
parent 25f8be5f24
commit 6ba90bf7e5
118 changed files with 1794 additions and 33 deletions

View File

@@ -317,6 +317,15 @@ namespace DataClient
catch { return false; }
return Connected();
}
public bool ReConnect()
{
if (tcpC != null && tcpC.Connected)
tcpC.Close();
tcpC = new TcpClient();
try { tcpC.Connect(new IPEndPoint(IPAddress.Parse(ip), port)); }
catch { return false; }
return Connected();
}
/// <include file='DataClientSrc.xml' path='docs/NET/m[@n="Connected"]/*' />
public bool Connected() { return (tcpC != null && tcpC.Connected); }
/// <include file='DataClientSrc.xml' path='docs/NET/m[@n="Close"]/*' />