网络调试助手/NetWorkForm.cs
(开头部分) 61KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
using System.Runtime.Serialization.Formatters.Binary;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using HZH_Controls.Forms;
using Framework2Core;
using static 网络调试助手.MethodClass;
namespace 网络调试助手
{
public partial class NetWorkForm : Form
{
#region 1.字段属性
//当前协议类型(UDP/TCPServer/TCPClient)
private CustomProtocolType Protocol { get; set; } = CustomProtocolType.UDP;
//udp通讯socket对象(UDP)
private Socket udpSocket = null;
//tcp通讯服务器对象(TCPServer)
private TcpListener tcpListener = null;
//tcp通讯客户端对象字典:每连上一个客户端,将客户端的IP地址端口号和TcpClient对象存在字典里(TCPServer)
private readonly Dictionary<string, TcpClient> _dicTcpClient = new Dictionary<string, TcpClient>();
//tcp通讯网络流对象字典:每连上一个客户端,将客户端的IP地址端口号和NetworkStream对象存在字典里(TCPServer)
private readonly Dictionary<string, NetworkStream> _dicNetworkStream = new Dictionary<string, NetworkStream>();
//tcp通讯客户端对象(TCPClient)
private TcpClient tcpClient = null;
//tcp通讯客户端网络流对象(TCPClient)
private NetworkStream stream = null;
//网络连接情况(UDP/TCPServer/TCPClient)
private bool IsConnected { get; set; } = false;
//接收数据线程(UDP/TCPServer/TCPClient)
private Thread Resthread;
//服务器监听客户端连接线程(TCPServer)
private Thread Listhread;
//序列化文件地址(UDP/TCPServer/TCPClient)
private readonly string ProDataPath = Application.StartupPath + "\\ProtocolMsg.dat";
//序列化对象(UDP/TCPServer/TCPClient)
后面还有 1453 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。