public Form1() { InitializeComponent(); bindComboValorXCamion(); acc = null; IPEndPoint ep = new IPEndPoint(IPAddress.Any, 6677); tcp_listener <cmd_acceptor> server = new tcp_listener <cmd_acceptor>(ep, 0); }
public void AbrirTransporte(IPEndPoint local_address) { if (tcp_server != null) { return; } ConnectionMode = Hacker.TCP.Retransmit ? ConnectionModes.DatagramOriented : ConnectionModes.ConnectionOriented; tcp_server = new tcp_listener <acceptor>(local_address, this); STrace.Debug(GetType().FullName, string.Format("reactor tcp iniciado, address={0}", local_address)); }
public AVL2CMD() { InitializeComponent(); request_in_progress = false; _instance = this; if (!EventLog.SourceExists("AVL2CMD")) { EventLog.CreateEventSource("AVL2CMD", "Application"); } el = new EventLog(); el.Source = "AVL2CMD"; // Write an informational entry to the event log. cmd_acceptor.SETLOG(this); IPEndPoint ep = new IPEndPoint(IPAddress.Any, 6677); tcp_listener <cmd_acceptor> server = new tcp_listener <cmd_acceptor>(ep, 0); input.Formatter = new BinaryMessageFormatter(); t = new Thread(new ThreadStart(ThreadProc)); t.Start(); el.WriteEntry("software startup."); }
public FotaServer(IPEndPoint LocalEndPoint) { this.LocalEndPoint = LocalEndPoint; listener = new tcp_listener <acceptor>(LocalEndPoint); }
public void CerrarTransporte() { tcp_server = null; }