-
C# pop3 邮件接收程序
private void Connect_Click(object sender, System.EventArgs e) { //将光标置为等待状态 Cursor cr = Cursor.Current; Cursor.Current = Cursors.WaitCursor; String a ,b,c; //用110端口新建POP3服务器连接 Server = new TcpClient(PopServer.Text, 110); Status.Items.Clear(); try { //初始化 NetStrm = Server.GetStream(); RdStrm = new StreamReader(Server.GetStream()); Status.Items.Add(RdStrm.ReadLine()); //登录服务器过程 Data = "USER " Username.Text CRLF; szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray()); NetStrm.Write(szData, 0, szData.Length); Status.Items.Add(RdStrm.ReadLine()); Data = "PASS " Password.Text CRLF; szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray()); NetStrm.Write(szData, 0, szData.Length); Status.Items.Add(RdStrm.ReadLine()); //向服务器发送STAT命令,从而取得邮箱的相关信息:邮件数量和大小 Data = "STAT" CRLF; szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray()); NetStrm.Write(szData, 0, szData.Length); //Status.Items.Add(RdStrm.ReadLine()); //改变按钮的状态 Connect.Enabled = false; Disconnect.Enabled = true; Retrieve.Enabled = true; //将光标置回原来状态 Cursor.Current = cr; } catch (InvalidOperationException err) { Status.Items.Add("Error: " err.ToString()); } }
- 2014-11-02下载
- 积分:1
-
linux-version.tar
计算机网络中的几个简单协议的仿真代码,从简单到复杂。。。比适合初学者(Computer network in a few simple agreement of simulation code, from simple to complex. . . Than suitable for beginners)
- 2008-05-05 21:32:39下载
- 积分:1
-
Source
socket client server using c++
- 2013-02-08 02:45:16下载
- 积分:1
-
QQProject
说明: 在Internet上的聊天室程序一般都是以服务器提供服务端连接响应,使用者通过客户端程序登录到服务器,就可以与登录在同一服务器上的用户交谈,这是一个面向连接的通信过程。因此,程序要在TCP/IP环境下,实现服务器端和客户端两部分程序。(In Internet chat rooms on the procedure is generally based on the server side connection in response to the provision of services, the user through the client program to log on to the server, you can log in the same server with the user to chat, this is a connection-oriented communication process. Therefore, procedures to TCP/IP environment, the realization of server-side and client procedures in two parts.)
- 2008-08-30 00:00:05下载
- 积分:1
-
MyQQ
企业QQ系统,通过服务端,可让多个客户端进行文字和图像的通信。(QQ enterprise system, through the server, allowing multiple clients for text and image communications.)
- 2013-09-06 00:08:33下载
- 积分:1
-
fzitnbl185
用BitBlt()函数实现界面切换的程序设计方法,其中包括:新建项目,用函数实现文件的打开操作以及相关的程序设计,(The program design method of interface switching is realized by BitBlt () function, which includes: new project, file opening operation with function, and related program design.)
- 2018-12-01 16:10:18下载
- 积分:1
-
IP-phone-source
VC++实现的IP网络电话方案,借鉴一下吧(VC IP telephone network, learn from my views)
- 2007-06-20 11:40:04下载
- 积分:1
-
ARPfindMACaddress
说明: ARP协议发现局域网内的活动主机,vc++语言编写,用有界面,美观实用(ARP protocol found in the activities of the LAN hosts, vc++ language, with a interface, beautiful and practical)
- 2011-02-23 07:22:30下载
- 积分:1
-
WCF 权限验证 实例源码下载
wcf 自定义权限验证调用完整例子源码
- 2014-12-31下载
- 积分:1
-
Socket文件传输(含服务端以及客户端源码)
Socket文件传输 传输任意格式文件
- 2018-06-15下载
- 积分:1