Send Data
This commit is contained in:
@@ -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"]/*' />
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user