91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.05M
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2021-02-27
  • 語言: 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());
            }
        }

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Net;
using?System.Net.Sockets;
using?System.IO;

namespace?MailReceiver
{
????///?
????///?Form1?的摘要說明。
????///?

????public?partial?class?Form1?:?System.Windows.Forms.Form
????{
????????private?System.Windows.Forms.Label?label1;
????????private?System.Windows.Forms.Label?label2;
????????private?System.Windows.Forms.Label?label3;
????????private?System.Windows.Forms.Label?label4;
????????private?System.Windows.Forms.Label?label5;
????????private?System.Windows.Forms.Label?label6;
????????private?System.Windows.Forms.TextBox?PopServer;
????????private?System.Windows.Forms.TextBox?Username;
????????private?System.Windows.Forms.TextBox?Password;
????????private?System.Windows.Forms.RichTextBox?Message;
????????private?System.Windows.Forms.TextBox?Ma

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-10-31?22:01??Projejct1\
?????目錄???????????0??2014-10-31?22:40??Projejct1\Projejct1\
?????文件????????1197??2014-10-31?22:41??Projejct1\Projejct1\Form1.Designer.cs
?????文件???????30113??2014-11-02?11:13??Projejct1\Projejct1\Form1.cs
?????文件????????5817??2014-10-31?22:41??Projejct1\Projejct1\Form1.resx
?????文件?????????494??2014-10-31?22:31??Projejct1\Projejct1\Program.cs
?????文件????????3677??2014-10-31?22:41??Projejct1\Projejct1\Projejct1.csproj
?????目錄???????????0??2014-10-31?22:01??Projejct1\Projejct1\Properties\
?????文件????????1350??2014-10-31?22:01??Projejct1\Projejct1\Properties\AssemblyInfo.cs
?????文件????????2870??2014-10-31?22:01??Projejct1\Projejct1\Properties\Resources.Designer.cs
?????文件????????5612??2014-10-31?22:01??Projejct1\Projejct1\Properties\Resources.resx
?????文件????????1096??2014-10-31?22:01??Projejct1\Projejct1\Properties\Settings.Designer.cs
?????文件?????????249??2014-10-31?22:01??Projejct1\Projejct1\Properties\Settings.settings
?????目錄???????????0??2014-10-31?22:01??Projejct1\Projejct1\bin\
?????目錄???????????0??2014-11-02?11:22??Projejct1\Projejct1\bin\Debug\
?????文件???????16384??2014-11-02?11:22??Projejct1\Projejct1\bin\Debug\Projejct1.exe
?????文件???????24064??2014-11-02?11:22??Projejct1\Projejct1\bin\Debug\Projejct1.pdb
?????文件???????11600??2014-11-02?11:13??Projejct1\Projejct1\bin\Debug\Projejct1.vshost.exe
?????文件?????????490??2010-03-17?22:39??Projejct1\Projejct1\bin\Debug\Projejct1.vshost.exe.manifest
?????目錄???????????0??2014-10-31?22:01??Projejct1\Projejct1\obj\
?????目錄???????????0??2014-10-31?22:01??Projejct1\Projejct1\obj\x86\
?????目錄???????????0??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\
?????文件????????5359??2014-11-01?13:10??Projejct1\Projejct1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????6241??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????180??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\MailReceiver.Form1.resources
?????文件?????????180??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\Projejct1.Properties.Resources.resources
?????文件?????????571??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\Projejct1.csproj.FileListAbsolute.txt
?????文件?????????975??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\Projejct1.csproj.GenerateResource.Cache
?????文件???????16384??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\Projejct1.exe
?????文件???????24064??2014-11-02?11:22??Projejct1\Projejct1\obj\x86\Debug\Projejct1.pdb
?????目錄???????????0??2014-11-02?11:23??Projejct1\Projejct1\obj\x86\Debug\TempPE\
............此處省略2個文件信息

評論

共有 條評論