2014-12-08 3 views
-1

디버그 모드에서 내 응용 프로그램의 로그입니다 :무엇이 IMAP 메일 서버를 말하는가? ↨ ♥ ☺

imap.ya.ru로 이야기하기 : http://s013.radikal.ru/i325/1412/10/14b46c9d7a2c.png.

imap.gmail.com : http://s61.radikal.ru/i174/1412/d2/113d5fc6289f.png으로 이야기하기.

Whats는 이러한 기호를 의미합니까?

저는 C#을 사용합니다.

내가 포함 무엇 : 내 코드의

using System; 
using System.Collections.Generic; 
using System.Diagnostics; 
using System.Drawing; 
using System.IO; 
using System.Net.Security; 
using System.Net.Sockets; 
using System.Text; 
using System.Threading; 
using System.Windows.Forms; 

조각 :

int port = useSSL ? portIMAPoverSSL : portIMAP; 
Stream stream = new TcpClient(ImapServerName,port).GetStream(); 
stream.ReadTimeout = 10; 
if (useSSL) 
{ 
    SslStream ssl = new SslStream(stream); 
    ssl.AuthenticateAsClient(ImapServerName); 
    stream = ssl; 
} 
StreamWriter w = new StreamWriter(stream,Encoding.ASCII); 
w.AutoFlush = true; 
StreamReader r = new StreamReader(stream,Encoding.ASCII); 

서버 메시지를 읽고 차단하지 GUI 내가이 절차를 사용하기 :

static string readServerAndProcessMessages() 
{ 
     while (true) 
     { 
      try 
      { 
       return r.ReadLine(); 
      } 
      catch(IOException e) 
      { 
       Application.DoEvents(); 
      } 
     } 
} 

그리고 가끔이 코드 :

string serv = readServerAndProcessMessages(); 

(<> 없음) : < ↨ ♥ ☺>, 경우에 따라 < ↨ ♥ ☺ 0>을 서버 응답의 접두사로 반환합니다. 이게 무슨 뜻이야?? IMAP4 RFC가 읽혔습니다. 이에 대한 정보가 없습니다.

+0

클라이언트 소프트웨어 란 무엇입니까? – Stan

+0

내 자신의 응용 프로그램, C로 작성 # – biv

+0

발행 된 명령에 적절한 태그를 지정합니까? 이 기호를 인쇄하는 코드 부분은 무엇입니까? 이 기호가있는 일부 기능/상태를 나타내는 방식으로 클라이언트를 프로그래밍하지 않은 경우 일부 변수가 초기화되지 않은 것처럼 보입니다. – Stan

답변

2

ERROR 원본을 찾았습니다 !!!

으로 인해 :

stream.ReadTimeout = 10; 

, SSL 프로토콜 작은 균열 및 표시 ↨ ♥ ☺ 이슈!

비동기 읽기 작업을 사용하면이 BUG가 사라집니다 !!! 나는 행복하다.

관련 문제