120 string command = entry.Command;
121 if (command ==
null || command ==
null)
125 if (response !=
null)
128 if (statusDescription !=
null && statusDescription ==
null)
135 if (response !=
null)
137 int status = response.
Status;
146 int num = entry.Command.IndexOf(
"USER");
151 int num3 = entry.Command.IndexOf(
"PASS");
205 bool flag =
string.IsNullOrEmpty(domain);
206 string text = domain +
"\\" + userName;
209 if (password._stringLength != 0 || password._stringLength == 0)
217 if (establishedServerDirectory !=
null)
220 if (loginDirectory !=
null)
251 int status = response.
Status;
262 global::System.Net.Sockets.Socket socket =
base.Socket;
266 global::System.Net.Sockets.Socket
socket2;
268 if (
base.Socket.LocalEndPoint !=
null)
315 int num2 =
text.LastIndexOf((
char)num);
318 int num4 = text2.LastIndexOf((
char)
num3);
543 int num = str.IndexOf(
"for ");
545 int num3 = str.LastIndexOf((
char)
num2);
548 string text = text2.Replace(
"#",
"%23");
554 global::System.Uri uri;
561 int num = str.LastIndexOf(
"(");
562 int num2 = str.IndexOf(
" bytes).");
571 int num2 = str.IndexOf((
char)num);
574 int num5 = str.LastIndexOf((
char)
num3);
575 return str.Substring(
num3, (
int)
num4);
620 if (
base.Socket.LocalEndPoint !=
null)
623 global::System.Net.Sockets.Socket socket =
base.Socket;
624 global::System.Net.Sockets.Socket
socket2;
637 if (
base.ServerAddress._numbers ==
null)
642 if (
base.ServerAddress._numbers !=
null)
716 int status = response.
Status;
730 bool flag2 =
char.IsDigit(c);
855 this.tlsStream.EndAuthenticateAsClient(
ar);
class f__AnonymousType0<< Count > j__TPar
static short ToInt16(object value, IFormatProvider provider)
static int ToInt32(object value)
static CultureInfo InvariantCulture
override CommandStream.PipelineInstruction PipelineCallback(CommandStream.PipelineEntry entry, ResponseDescription response, bool timeout, Stream stream)
StringBuilder _welcomeMessage
global::System.Uri ResponseUri
FtpLoginState _loginState
static readonly AsyncCallback s_connectCallbackDelegate
static void ConnectCallback(IAsyncResult asyncResult)
string _establishedServerDirectory
override CommandStream.PipelineEntry[] BuildCommandsList(WebRequest req)
static FtpControlStream()
static void AcceptCallback(IAsyncResult asyncResult)
global::System.Net.Sockets.Socket CreateFtpDataSocket(FtpWebRequest request, global::System.Net.Sockets.Socket templateSocket)
WeakReference _credentials
global::System.Uri _responseUri
StringBuilder _bannerMessage
static void GetPathInfo(FtpControlStream.GetPathOption pathOption, global::System.Uri uri, [Out] string path, [Out] string directory, [Out] string filename)
DateTime GetLastModifiedFrom213Response(string str)
string FormatAddressV6(IPAddress address, int port)
TriState IsFtpDataStreamWriteable()
static readonly AsyncCallback s_acceptCallbackDelegate
IPEndPoint _passiveEndPoint
override void ClearState()
static void SSLHandshakeCallback(IAsyncResult asyncResult)
static readonly AsyncCallback s_SSLHandshakeCallback
long GetContentLengthFrom213Response(string responseString)
FtpControlStream(global::System.Net.Sockets.TcpClient client)
void TryUpdateContentLength(string str)
string GetPortCommandLine(FtpWebRequest request)
override bool CheckValid(ResponseDescription response, int validThrough, int completeLength)
int GetPortV6(string responseString)
void TryUpdateResponseUri(string str, FtpWebRequest request)
NetworkCredential Credentials
bool _dataHandshakeStarted
int GetPortV4(string responseString)
void CreateFtpListenerSocket(FtpWebRequest request)
CommandStream.PipelineInstruction QueueOrCreateFtpDataStream(Stream stream)
string GetLoginDirectory(string str)
CommandStream.PipelineInstruction QueueOrCreateDataConection(CommandStream.PipelineEntry entry, ResponseDescription response, bool timeout, Stream stream, [Out] bool isSocketReady)
global::System.Net.Sockets.Socket _dataSocket
string FormatAddress(IPAddress address, int Port)
string FormatFtpCommand(string command, string parameter)
StringBuilder _exitMessage
string _currentTypeSetting
string _requestedServerDirectory
static void Info(object thisOrContextObject, [Optional] FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static void Fail(object thisOrContextObject, FormattableString formattableString, [CallerMemberName][Optional] string memberName)
static new bool IsEnabled
StringBuilder StatusBuffer
StringBuilder Append(char value, int repeatCount)