public NetworkSystemProcess(MainSystemManagerForm mainSystemForm, int port) { mMainsystemForm = mainSystemForm; networkClientThread = new Thread(NetworkThread); networkClientThread.IsBackground = true; if (port != 0) { serverPort = port; } listener = new TcpListener(IPAddress.Any, serverPort); listener.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); }
public LogProcess(Boolean saveLog, MainSystemManagerForm mainSystemForm) { mSaveLogfile = saveLog; mMainsystemForm = mainSystemForm; }