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

◆ EndRead()

override int System.Net.Sockets.NetworkStream.EndRead ( IAsyncResult asyncResult)
inlinevirtual

Reimplemented from System.IO.Stream.

Reimplemented in System.Net.TlsStream, and System.Net.TlsStream.

Definition at line 332 of file NetworkStream.cs.

333 {
335 if (asyncResult == null)
336 {
337 throw new ArgumentNullException("asyncResult");
338 }
339 try
340 {
342 }
343 catch (Exception ex) when (!(ex is OutOfMemoryException))
344 {
346 }
347 }
static IOException WrapException(string resourceFormatString, Exception innerException)
int EndReceive(IAsyncResult asyncResult)
Definition Socket.cs:2571
static string net_io_readfailure
Definition SR.cs:158
Definition SR.cs:7

References System.Net.Sockets.NetworkStream._streamSocket, System.asyncResult, System.Net.Sockets.Socket.EndReceive(), System.SR.net_io_readfailure, System.Net.Sockets.NetworkStream.ThrowIfDisposed(), and System.Net.Sockets.NetworkStream.WrapException().

Referenced by System.Net.FtpDataStream.AsyncReadCallback(), System.Net.NetworkStreamWrapper.EndRead(), and Terraria.Net.Sockets.TcpSocket.ReadCallback().