提交 54914b78 编写于 作者: G Geoff Kizer
上级 ef1b3954
......@@ -312,7 +312,7 @@ private void EnsureTransmitPackets(SafeCloseSocket socketHandle)
IntPtr completionRoutine);
internal delegate SocketError WSARecvMsgDelegateBlocking(
SafeCloseSocket socketHandle,
IntPtr socketHandle,
IntPtr msg,
out int bytesTransferred,
IntPtr overlapped,
......
......@@ -103,7 +103,7 @@ internal SocketError WSARecvMsg(SafeCloseSocket socketHandle, IntPtr msg, out in
return recvMsg(socketHandle, msg, out bytesTransferred, overlapped, completionRoutine);
}
internal SocketError WSARecvMsgBlocking(SafeCloseSocket socketHandle, IntPtr msg, out int bytesTransferred, IntPtr overlapped, IntPtr completionRoutine)
internal SocketError WSARecvMsgBlocking(IntPtr socketHandle, IntPtr msg, out int bytesTransferred, IntPtr overlapped, IntPtr completionRoutine)
{
EnsureDynamicWinsockMethods();
WSARecvMsgDelegateBlocking recvMsg_Blocking = _dynamicWinsockMethods.GetDelegate<WSARecvMsgDelegateBlocking>(_handle);
......
......@@ -379,7 +379,7 @@ public static unsafe SocketError ReceiveMessageFrom(Socket socket, SafeCloseSock
wsaMsg.controlBuffer.Length = sizeof(Interop.Winsock.ControlData);
if (socket.WSARecvMsgBlocking(
handle,
handle.DangerousGetHandle(),
(IntPtr)(&wsaMsg),
out bytesTransferred,
IntPtr.Zero,
......@@ -397,7 +397,7 @@ public static unsafe SocketError ReceiveMessageFrom(Socket socket, SafeCloseSock
wsaMsg.controlBuffer.Length = sizeof(Interop.Winsock.ControlDataIPv6);
if (socket.WSARecvMsgBlocking(
handle,
handle.DangerousGetHandle(),
(IntPtr)(&wsaMsg),
out bytesTransferred,
IntPtr.Zero,
......@@ -414,7 +414,7 @@ public static unsafe SocketError ReceiveMessageFrom(Socket socket, SafeCloseSock
wsaMsg.controlBuffer.Length = 0;
if (socket.WSARecvMsgBlocking(
handle,
handle.DangerousGetHandle(),
(IntPtr)(&wsaMsg),
out bytesTransferred,
IntPtr.Zero,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册