- 26
- 0
- 约1.97万字
- 约 16页
- 2016-03-16 发布于湖北
- 举报
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace AsyncTcpServer
{
public partial class FormServer : Form
{
/// summary保存连接的所有用户/summary
private ListUser userList = new ListUser();
/// summary使用的本机IP地址/summary
IPAddress localAddress;
/// summary监听端口/summary
private const int port = 51888;
private TcpListener myListener;
/// summary是否正常退出所有接收线程/summary
bool isExit = false;
public FormServer()
{
原创力文档

文档评论(0)