---------------------- Windows Phone 7手机开发、.Net培训、期待与您交流! ----------------------
今天,我看的是聊天室的视频,把服务端的代码写出来了,,放到博客上,分享~有牛人看到了一定要给建议啊!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;
using System.Threading;
namespace 聊天服务端
{
public partial class ForServer : Form
{
public ForServer()
{
InitializeComponent();
TextBox.CheckForIllegalCrossThreadCalls = false;//关闭 文本框 跨线程检查
}
Thread threadWatch = null;
Socket socketWatch = null;
private void btnSocket_Cli