C# TcpClient disconnection reconnection upgrade version–final version

using System; using System.Collections.Generic; using System. Linq; using System.Net.NetworkInformation; using System.Net.Sockets; using System.Net; using System. Text; using System. Threading; using System. Threading. Tasks; using System.Collections.Concurrent; using System. Drawing; namespace TorqueCollect { class AsyncTcpClient { private string ip; private string detail filename; private int port; public byte Delimiter = 0x00; // NUL accepts information delimiter private […]

Develop ser2tcpclient in openwrt (serial port to tcp to achieve high-speed transparent transmission)

Article directory summary overall architecture process technical details summary Summary The open source project ser2net is widely used as a serial-to-Ethernet server under the Linux/openwrt system, and is very suitable for use as an IoT device in a passive monitoring connection scenario. The ser2tcpclient developed in this paper is a client that converts serial ports […]

Realization of TCP communication based on QT (TCPServer and TCPClient)

Article directory 1. Software introduction 1.1 TCPServer server interface 1.2 TCPClient client interface 1.3 The server and client establish a connection and communicate with each other Two, QT implements TCPServer and TCPClient 2.1 TCPClient client 2.1 TCPServer server 3. Code sharing Recently, because of the need to use the test TCPServer (TCP server) and TCPClient […]