Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AuthCommand.cs
Go to the documentation of this file.
1namespace System.Net.Mail;
2
3internal static class AuthCommand
4{
5 internal static IAsyncResult BeginSend(SmtpConnection conn, string type, string message, AsyncCallback callback, object state)
6 {
7 PrepareCommand(conn, type, message);
8 return ReadLinesCommand.BeginSend(conn, callback, state);
9 }
10
11 internal static IAsyncResult BeginSend(SmtpConnection conn, string message, AsyncCallback callback, object state)
12 {
13 PrepareCommand(conn, message);
14 return ReadLinesCommand.BeginSend(conn, callback, state);
15 }
16
17 private static LineInfo CheckResponse(LineInfo[] lines)
18 {
19 if (lines == null || lines.Length == 0)
20 {
22 }
23 return lines[0];
24 }
25
26 internal static LineInfo EndSend(IAsyncResult result)
27 {
29 }
30
31 private static void PrepareCommand(SmtpConnection conn, string type, string message)
32 {
35 conn.BufferBuilder.Append(32);
36 conn.BufferBuilder.Append(message);
38 }
39
40 private static void PrepareCommand(SmtpConnection conn, string message)
41 {
42 conn.BufferBuilder.Append(message);
44 }
45
46 internal static LineInfo Send(SmtpConnection conn, string type, string message)
47 {
48 PrepareCommand(conn, type, message);
50 }
51
52 internal static LineInfo Send(SmtpConnection conn, string message)
53 {
54 PrepareCommand(conn, message);
56 }
57}
static LineInfo Send(SmtpConnection conn, string message)
static LineInfo EndSend(IAsyncResult result)
static LineInfo CheckResponse(LineInfo[] lines)
static void PrepareCommand(SmtpConnection conn, string message)
static IAsyncResult BeginSend(SmtpConnection conn, string message, AsyncCallback callback, object state)
static IAsyncResult BeginSend(SmtpConnection conn, string type, string message, AsyncCallback callback, object state)
Definition AuthCommand.cs:5
static LineInfo Send(SmtpConnection conn, string type, string message)
static void PrepareCommand(SmtpConnection conn, string type, string message)
static LineInfo[] EndSend(IAsyncResult result)
static IAsyncResult BeginSend(SmtpConnection conn, AsyncCallback callback, object state)
static LineInfo[] Send(SmtpConnection conn)
static readonly byte[] CRLF
static readonly byte[] Auth
static string SmtpAuthResponseInvalid
Definition SR.cs:150
Definition SR.cs:7