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

◆ AcceptCallback()

static void System.Net.FtpControlStream.AcceptCallback ( IAsyncResult asyncResult)
inlinestaticprivate

Definition at line 142 of file FtpControlStream.cs.

143 {
145 Socket dataSocket = ftpControlStream._dataSocket;
146 try
147 {
148 ftpControlStream._dataSocket = dataSocket.EndAccept(asyncResult);
149 if (!ftpControlStream.ServerAddress.Equals(((IPEndPoint)ftpControlStream._dataSocket.RemoteEndPoint).Address))
150 {
151 ftpControlStream._dataSocket.Close();
152 throw new WebException(System.SR.net_ftp_active_address_different, WebExceptionStatus.ProtocolError);
153 }
154 ftpControlStream.ContinueCommandPipeline();
155 }
156 catch (Exception obj)
157 {
158 ftpControlStream.CloseSocket();
159 ftpControlStream.InvokeRequestCallback(obj);
160 }
161 finally
162 {
163 dataSocket.Close();
164 }
165 }
FtpControlStream(TcpClient client)
static string net_ftp_active_address_different
Definition SR.cs:84
Definition SR.cs:7

References System.Net.FtpControlStream.FtpControlStream(), System.asyncResult, System.SR.net_ftp_active_address_different, and System.obj.