using System; using System.Collections.Generic; using System.Linq; using System.Net.Sockets; using System.Net; using System.Text; using System.Threading.Tasks; using System.Timers; using static System.Collections.Specialized.BitVector32; using System.Security.Cryptography; using System.Text.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using Guidaoji.Camera; using Guidaoji.Common; using EGFramework; using Emergency_platform; Program program = new Program(); program.Start(); public partial class Program :IEGFramework { public void Start() { TCP tcp = new TCP(); Patrol patrol = new Patrol(); //IP string sIP = "192.168.10.102"; //端口号 string sPassword = "tschkj88"; //连接轨道机服务器 //TcpClientWrapper.Socket("192.168.10.104", 20000); TcpClientWrapper.Socket("192.168.10.104", 20000); //tcp.Socket(); //patrol.PatrolD(); Console.WriteLine("InitSuccess"); StartServer(); //登录摄像头 //CHNetHelp.CameraInit(sIP, sPassword); while (!Console.ReadLine().ToUpper().Contains("CLOSE")) continue; Environment.Exit(0); } public void StartServer(){ this.EGTCPServerListen(20001); this.EGEnabledProtocolTool(); this.RegisterModule(new ModelNumericalValue()); this.RegisterModule(new ModelPatrol()); } }