本文演示C#TcpClient 和 TcpListener的使用实例,掌握基本用法。
目录
TcpListener服务器
界面
UI代码
namespace TcpListenerDemo
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disp