Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetPortV6()

int System.Net.FtpControlStream.GetPortV6 ( string responseString)
inlineprivate

Definition at line 799 of file FtpControlStream.cs.

800 {
801 int num = responseString.LastIndexOf('(');
802 int num2 = responseString.LastIndexOf(')');
803 if (num == -1 || num2 <= num)
804 {
806 }
807 string text = responseString.Substring(num + 1, num2 - num - 1);
808 string[] array = text.Split('|');
809 if (array.Length < 4)
810 {
812 }
813 return Convert.ToInt32(array[3], NumberFormatInfo.InvariantInfo);
814 }
static string net_ftp_response_invalid_format
Definition SR.cs:98
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.array, System.SR.Format(), System.Globalization.NumberFormatInfo.InvariantInfo, System.SR.net_ftp_response_invalid_format, System.text, and System.Convert.ToInt32().

Referenced by System.Net.FtpControlStream.QueueOrCreateDataConection().