A
Alexander Smirnov
Hello!
In .NET 2.0 Socket.BeginReceive has a new overloaded version:
public IAsyncResult BeginReceive (
byte[] buffer,
int offset,
int size,
SocketFlags socketFlags,
out SocketError errorCode,
AsyncCallback callback,
Object state )
My question is about errorCode parameter. What it is for? Is it for
returning error code in case of a socket error? But why then this
version of BeginReceive throws SocketException as MSDN says?
Thanks in advance.
In .NET 2.0 Socket.BeginReceive has a new overloaded version:
public IAsyncResult BeginReceive (
byte[] buffer,
int offset,
int size,
SocketFlags socketFlags,
out SocketError errorCode,
AsyncCallback callback,
Object state )
My question is about errorCode parameter. What it is for? Is it for
returning error code in case of a socket error? But why then this
version of BeginReceive throws SocketException as MSDN says?
Thanks in advance.