socket通信02

winfor的页面类 :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
public partial class Main : Form
{
public Main()
{
CheckForIllegalCrossThreadCalls = false;
InitializeComponent();
}
/// <summary>
/// 启动监听
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, EventArgs e)
{
SocketServer socketServer = new SocketServer(log, count, prot.Text);
socketServer.StartSocketServer();
}
原文链接:https://blog.csdn.net/qq_37009720/article/details/118085241
本文来自博客园,作者:.net&new,转载请注明原文链接:https://www.cnblogs.com/wugh8726254/p/17434124.html
浙公网安备 33010602011771号