3 writes to m_Handle
System (3)
net\System\Net\Sockets\Socket.cs (3)
145
m_Handle
= SafeCloseSocket.CreateWSASocket(
183
m_Handle
= SafeCloseSocket.CreateWSASocket(pinnedBuffer);
280
m_Handle
= fd;
106 references to m_Handle
System (106)
net\System\Net\Sockets\Socket.cs (106)
150
if (
m_Handle
.IsInvalid) {
192
if (
m_Handle
.IsInvalid) {
233
m_Handle
,
355
m_Handle
,
409
m_Handle
,
456
m_Handle
,
490
return
m_Handle
.DangerousGetHandle();
495
return
m_Handle
;
951
m_Handle
,
1176
m_Handle
,
1239
m_Handle
,
1344
m_Handle
.DangerousGetHandle(),
1458
!UnsafeNclNativeMethods.OSSOCK.TransmitFile_Blocking(
m_Handle
.DangerousGetHandle(), fileHandle, 0, 0, SafeNativeOverlapped.Zero, asyncResult.TransmitFileBuffers, flags) :
1459
!UnsafeNclNativeMethods.OSSOCK.TransmitFile_Blocking2(
m_Handle
.DangerousGetHandle(), IntPtr.Zero, 0, 0, SafeNativeOverlapped.Zero, asyncResult.TransmitFileBuffers, flags))
1546
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.send(
m_Handle
.DangerousGetHandle(), null, 0, socketFlags);
1550
m_Handle
.DangerousGetHandle(),
1633
m_Handle
.DangerousGetHandle(),
1645
m_Handle
.DangerousGetHandle(),
1777
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recv(
m_Handle
.DangerousGetHandle(), null, 0, socketFlags);
1780
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recv(
m_Handle
.DangerousGetHandle(), pinnedBuffer+offset, size, socketFlags);
1880
m_Handle
.DangerousGetHandle(),
2005
m_Handle
.DangerousGetHandle(),
2102
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recvfrom(
m_Handle
.DangerousGetHandle(), null, 0, socketFlags, socketAddress.m_Buffer, ref socketAddress.m_Size );
2104
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recvfrom(
m_Handle
.DangerousGetHandle(), pinnedBuffer+offset, size, socketFlags, socketAddress.m_Buffer, ref socketAddress.m_Size );
2198
m_Handle
.DangerousGetHandle(),
2251
m_Handle
.DangerousGetHandle(),
2324
m_Handle
,
2433
m_Handle
,
2471
m_Handle
,
2507
m_Handle
,
2548
IntPtr handle =
m_Handle
.DangerousGetHandle();
2810
errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.WSADuplicateSocket(
m_Handle
, (uint)targetProcessId, pinnedBuffer);
2877
IntPtr handle =
m_Handle
.DangerousGetHandle();
3023
m_Handle
,
3235
if (!DisconnectEx(
m_Handle
,asyncResult.OverlappedHandle, (int)(reuseSocket?TransmitFileOptions.ReuseSocket:0),0)) {
3284
if (!DisconnectEx_Blocking(
m_Handle
.DangerousGetHandle(), IntPtr.Zero, (int) (reuseSocket ? TransmitFileOptions.ReuseSocket : 0), 0))
3524
m_Handle
,
3642
result = UnsafeNclNativeMethods.OSSOCK.TransmitFile(
m_Handle
,fileHandle,0,0,asyncResult.OverlappedHandle,asyncResult.TransmitFileBuffers,flags);
3645
result = UnsafeNclNativeMethods.OSSOCK.TransmitFile2(
m_Handle
,IntPtr.Zero,0,0,asyncResult.OverlappedHandle,asyncResult.TransmitFileBuffers,flags);
3758
m_Handle
,
4028
m_Handle
,
4270
m_Handle
,
4386
m_Handle
,
4591
m_Handle
,
4848
m_Handle
,
5092
m_Handle
,
5246
m_Handle
,
5419
m_Handle
,
5420
acceptSocket.
m_Handle
,
5640
SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.shutdown(
m_Handle
, (int) how);
5734
GetAcceptExSockaddrsDelegate getAcceptExSockaddrs = m_DynamicWinsockMethods.GetDelegate<GetAcceptExSockaddrsDelegate>(
m_Handle
);
5757
DisconnectExDelegate_Blocking disconnectEx_Blocking = m_DynamicWinsockMethods.GetDelegate<DisconnectExDelegate_Blocking>(
m_Handle
);
5787
WSARecvMsgDelegate_Blocking recvMsg_Blocking = m_DynamicWinsockMethods.GetDelegate<WSARecvMsgDelegate_Blocking>(
m_Handle
);
6185
m_Handle
.DangerousGetHandle(),
6302
m_Handle
.Dispose();
6313
m_Handle
,
6316
GlobalLog.Print("SafeCloseSocket::Dispose(handle:" +
m_Handle
.DangerousGetHandle().ToString("x") + ") ioctlsocket(FIONBIO):" + (errorCode == SocketError.SocketError ? (SocketError) Marshal.GetLastWin32Error() : errorCode).ToString());
6323
m_Handle
.CloseAsIs();
6328
errorCode = UnsafeNclNativeMethods.OSSOCK.shutdown(
m_Handle
, (int) SocketShutdown.Send);
6329
GlobalLog.Print("SafeCloseSocket::Dispose(handle:" +
m_Handle
.DangerousGetHandle().ToString("x") + ") shutdown():" + (errorCode == SocketError.SocketError ? (SocketError) Marshal.GetLastWin32Error() : errorCode).ToString());
6333
m_Handle
,
6338
GlobalLog.Print("SafeCloseSocket::Dispose(handle:" +
m_Handle
.DangerousGetHandle().ToString("x") + ") setsockopt():" + (errorCode == SocketError.SocketError ? (SocketError) Marshal.GetLastWin32Error() : errorCode).ToString());
6342
m_Handle
.Dispose();
6348
errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.recv(
m_Handle
.DangerousGetHandle(), null, 0, SocketFlags.None);
6350
GlobalLog.Print("SafeCloseSocket::Dispose(handle:" +
m_Handle
.DangerousGetHandle().ToString("x") + ") recv():" + errorCode.ToString());
6355
m_Handle
.Dispose();
6362
m_Handle
,
6365
GlobalLog.Print("SafeCloseSocket::Dispose(handle:" +
m_Handle
.DangerousGetHandle().ToString("x") + ") ioctlsocket(FIONREAD):" + (errorCode == SocketError.SocketError ? (SocketError) Marshal.GetLastWin32Error() : errorCode).ToString());
6370
m_Handle
.Dispose();
6377
m_Handle
.CloseAsIs();
6386
GlobalLog.Assert("SafeCloseSocket::Dispose(handle:" +
m_Handle
.DangerousGetHandle().ToString("x") + ")", "Closing the handle threw ObjectDisposedException.");
6430
if (CleanedUp ||
m_Handle
.IsInvalid) {
6436
UnsafeNclNativeMethods.OSSOCK.shutdown(
m_Handle
, (int)how);
6471
if (silent && (CleanedUp ||
m_Handle
.IsInvalid)) {
6479
m_Handle
,
6488
if (silent &&
m_Handle
.IsInvalid) {
6551
m_Handle
,
6589
m_Handle
,
6620
m_Handle
,
6648
m_Handle
,
6679
m_Handle
,
6732
m_Handle
,
6778
m_Handle
,
6827
fileDescriptorSet[current + 1] = ((Socket)socketList[current]).
m_Handle
.DangerousGetHandle();
6855
if (fileDescriptorSet[currentFileDescriptor + 1]==socket.
m_Handle
.DangerousGetHandle()) {
6923
m_Handle
,
7006
m_Handle
.DangerousGetHandle(),
7236
m_Handle
,
7438
if (m_IsConnected && (
m_Handle
.IsInvalid || (errorCode != SocketError.WouldBlock &&
7469
errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(
m_Handle
, IntPtr.Zero, AsyncEventBits.FdNone);
7556
errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(
m_Handle
, m_AsyncEvent.SafeWaitHandle, blockEventBits);
7652
ThreadPool.BindHandle(
m_Handle
);
7727
m_Handle
,
7728
e.AcceptSocket.
m_Handle
,
7837
m_Handle
,
7940
m_Handle
,
7995
m_Handle
,
8005
m_Handle
,
8084
m_Handle
,
8095
m_Handle
,
8177
m_Handle
,
8237
m_Handle
,
8247
m_Handle
,
8312
m_Handle
,
8388
m_Handle
,
8399
m_Handle
,