c# 网络编程的问题(非常紧急)在线等待
服务器
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Windows.Forms;
using System.Collections;
using System.Threading;
using XuLIeHua;
using System.Messaging;
namespace 网络聊天
{
public partial class frmServer : Form
{
public frmServer()
{
InitializeComponent();
}
private TcpListener Listen;
private Thread th;
private LogText log;
private bool QUIT;
private TcpClient Client;
private static Dictionary <int, TcpClient> s_socket;
private void button1_Click(object sender, EventArgs e)
{
try
{
Listen.Start();
th.Start();
}
catch(Exception err)
{
log.LogWriter(err.Message);
}
}
private void JianKong()
{
try
{