You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
808 B
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IPCLib;
using System.IO;
using System.Windows.Forms;
namespace IpcClassNs
{
public class IpcTcpClass
{
public bool m_bConn =false;
public TcpManager m_tcp;
public int m_Port;
public Process m_process;
public IpcTcpClass()
{
m_tcp = new TcpManager();
m_Port = 6790;
}
public void ReleaseTcp()
{
if (m_tcp != null)
{
m_tcp.Dispose();
}
m_bConn = false;
m_tcp = null;
}
public void ReBuildTcp()
{
m_tcp = new TcpManager();
}
}
}