10 2014 档案

摘要:Tcp的应用客户端重要笔记1.Random类(随机类)的使用方法: 例如:Random r = new Random(); textBoxUserName.T... 阅读全文
posted @ 2014-10-22 00:30 旋风小天 阅读(283) 评论(0) 推荐(0) 编辑
摘要:1 using System; 2 using System.Windows.Forms; 3 //添加的命名空间引用 4 using System.Net; 5 using System.Net.Sockets; 6 using System.Threading; 7 using ... 阅读全文
posted @ 2014-10-22 00:27 旋风小天 阅读(366) 评论(0) 推荐(0) 编辑
摘要:1 TCP的应用编程服务器端重要笔记 2 1. TcpListener类用于侦听和接受传入的连接请求。 3 TcpClient类用于提供本地主机和远程主机的连接信息。 4 2.TcpClient类 5 主要用于编写客户端程序,且需要直接利用构... 阅读全文
posted @ 2014-10-22 00:26 旋风小天 阅读(161) 评论(0) 推荐(0) 编辑
摘要:namespace SyncChatServer{ class User { public TcpClient client{get; private set;} public BinaryReader br{get; private set;} ... 阅读全文
posted @ 2014-10-22 00:22 旋风小天 阅读(504) 评论(0) 推荐(0) 编辑