18 references to UnsafeNativeMethods
System.ServiceModel.NetTcp (18)
System\ServiceModel\Channels\SocketConnection.cs (18)
685
if (socketException.ErrorCode ==
UnsafeNativeMethods
.ERROR_INVALID_HANDLE)
696
if (socketException.ErrorCode ==
UnsafeNativeMethods
.WSAECONNABORTED &&
703
if (socketException.ErrorCode ==
UnsafeNativeMethods
.WSAENETRESET ||
704
socketException.ErrorCode ==
UnsafeNativeMethods
.WSAECONNABORTED ||
705
socketException.ErrorCode ==
UnsafeNativeMethods
.WSAECONNRESET)
717
else if (socketException.ErrorCode ==
UnsafeNativeMethods
.WSAETIMEDOUT)
827
if ((int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.ERROR_INVALID_HANDLE)
832
if ((int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAEADDRNOTAVAIL ||
833
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAECONNREFUSED ||
834
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAENETDOWN ||
835
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAENETUNREACH ||
836
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAEHOSTDOWN ||
837
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAEHOSTUNREACH ||
838
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAETIMEDOUT)
849
else if ((int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.WSAENOBUFS)
853
else if ((int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.ERROR_NOT_ENOUGH_MEMORY ||
854
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.ERROR_NO_SYSTEM_RESOURCES ||
855
(int)socketException.SocketErrorCode ==
UnsafeNativeMethods
.ERROR_OUTOFMEMORY)