140 references to OSSOCK
System (140)
net\System\Net\_AutoWebProxyScriptHelper.cs (7)
589
UnsafeNclNativeMethods.
OSSOCK
.WSAStringToAddress(
601
UnsafeNclNativeMethods.
OSSOCK
.WSAStringToAddress(
643
int cbRequiredBytes = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.SOCKET_ADDRESS_LIST)) +
644
(SockAddrIn6List.Length -1)*Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.SOCKET_ADDRESS));
660
UnsafeNclNativeMethods.
OSSOCK
.SOCKET_ADDRESS_LIST* pList
661
= (UnsafeNclNativeMethods.
OSSOCK
.SOCKET_ADDRESS_LIST*)pSocketAddressList;
663
UnsafeNclNativeMethods.
OSSOCK
.SOCKET_ADDRESS* pSocketAddresses =
net\System\Net\_SafeNetHandles.cs (2)
2718
InnerSafeCloseSocket result = UnsafeNclNativeMethods.
OSSOCK
.WSASocket((AddressFamily) (-1),(SocketType) (-1),(ProtocolType) (-1), pinnedBuffer, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED);
2727
InnerSafeCloseSocket result = UnsafeNclNativeMethods.
OSSOCK
.WSASocket(addressFamily, socketType, protocolType, IntPtr.Zero, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED);
net\System\Net\DNS.cs (4)
247
UnsafeNclNativeMethods.
OSSOCK
.gethostbyname(
413
UnsafeNclNativeMethods.
OSSOCK
.gethostbyaddr(
462
UnsafeNclNativeMethods.
OSSOCK
.gethostname(
1205
UnsafeNclNativeMethods.
OSSOCK
.GetNameInfoW(
net\System\Net\Internal.cs (6)
560
UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(ipv4Socket, IoctlSocketConstants.FIONBIO, ref blocking);
566
UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(ipv6Socket,IoctlSocketConstants.FIONBIO,ref blocking);
578
errorCode = (SocketError)UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl_Blocking(
593
errorCode = (SocketError)UnsafeNclNativeMethods.
OSSOCK
.WSAEventSelect(ipv4Socket, ipv4Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
601
errorCode = (SocketError) UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl_Blocking(
616
errorCode = (SocketError)UnsafeNclNativeMethods.
OSSOCK
.WSAEventSelect(ipv6Socket, ipv6Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
net\System\Net\IPAddress.cs (2)
193
UnsafeNclNativeMethods.
OSSOCK
.WSAStringToAddress(
450
UnsafeNclNativeMethods.
OSSOCK
.WSAAddressToString(
net\System\Net\NetworkInformation\NetworkAddressChange.cs (6)
260
UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(s_ipv4Socket, IoctlSocketConstants.FIONBIO,ref blocking);
267
UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(s_ipv6Socket,IoctlSocketConstants.FIONBIO,ref blocking);
294
errorCode = (SocketError) UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl_Blocking(
308
errorCode = (SocketError)UnsafeNclNativeMethods.
OSSOCK
.WSAEventSelect(s_ipv4Socket, s_ipv4Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
322
errorCode = (SocketError) UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl_Blocking(
336
errorCode = (SocketError)UnsafeNclNativeMethods.
OSSOCK
.WSAEventSelect(s_ipv6Socket, s_ipv6Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
82
errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
361
bool success = UnsafeNclNativeMethods.
OSSOCK
.WSAGetOverlappedResult(
net\System\Net\Sockets\_ConnectOverlappedAsyncResult.cs (1)
41
errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
net\System\Net\Sockets\_DynamicWinsockMethods.cs (1)
119
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl(
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (11)
24
private UnsafeNclNativeMethods.
OSSOCK
.WSAMsg* m_Message;
33
private static readonly int s_ControlDataSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlData));
34
private static readonly int s_ControlDataIPv6Size = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6));
36
private static readonly int s_WSAMsgSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.WSAMsg));
117
m_Message = (UnsafeNclNativeMethods.
OSSOCK
.WSAMsg*) Marshal.UnsafeAddrOfPinnedArrayElement(m_MessageBuffer, 0);
143
UnsafeNclNativeMethods.
OSSOCK
.ControlData controlData = (UnsafeNclNativeMethods.
OSSOCK
.ControlData)Marshal.PtrToStructure(m_Message->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlData));
152
UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6 controlData = (UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6)Marshal.PtrToStructure(m_Message->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6));
net\System\Net\Sockets\Socket.cs (98)
114
private readonly static int protocolInformationSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.WSAPROTOCOL_INFO));
185
UnsafeNclNativeMethods.
OSSOCK
.WSAPROTOCOL_INFO protocolInfo = (UnsafeNclNativeMethods.
OSSOCK
.WSAPROTOCOL_INFO)Marshal.PtrToStructure((IntPtr)pinnedBuffer, typeof(UnsafeNclNativeMethods.
OSSOCK
.WSAPROTOCOL_INFO));
232
errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockname(
354
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(
408
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockname(
455
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getpeername(
950
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.bind(
1175
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.listen(
1343
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSASend_Blocking(
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);
1549
bytesTransferred = UnsafeNclNativeMethods.
OSSOCK
.send(
1632
bytesTransferred = UnsafeNclNativeMethods.
OSSOCK
.sendto(
1644
bytesTransferred = UnsafeNclNativeMethods.
OSSOCK
.sendto(
1777
bytesTransferred = UnsafeNclNativeMethods.
OSSOCK
.recv(m_Handle.DangerousGetHandle(), null, 0, socketFlags);
1780
bytesTransferred = UnsafeNclNativeMethods.
OSSOCK
.recv(m_Handle.DangerousGetHandle(), pinnedBuffer+offset, size, socketFlags);
1879
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSARecv_Blocking(
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 );
2197
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl_Blocking(
2250
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAIoctl_Blocking_Internal(
2323
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
2432
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockopt(
2470
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockopt(
2506
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockopt(
2559
UnsafeNclNativeMethods.
OSSOCK
.select(
2568
UnsafeNclNativeMethods.
OSSOCK
.select(
2636
UnsafeNclNativeMethods.
OSSOCK
.select(
2645
UnsafeNclNativeMethods.
OSSOCK
.select(
2810
errorCode = (SocketError) UnsafeNclNativeMethods.
OSSOCK
.WSADuplicateSocket(m_Handle, (uint)targetProcessId, pinnedBuffer);
2884
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAConnect(
3022
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAEnumNetworkEvents(
3523
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSASend(
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);
3757
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSASend(
4027
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSASendTo(
4269
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSARecv(
4385
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSARecv(
4847
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSARecvFrom(
5640
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.shutdown(m_Handle, (int) how);
5962
UnsafeNclNativeMethods.
OSSOCK
.WSAStartup(
5994
UnsafeNclNativeMethods.
OSSOCK
.WSASocket(
6010
UnsafeNclNativeMethods.
OSSOCK
.WSASocket(
6184
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAConnect(
6312
errorCode = UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(
6328
errorCode = UnsafeNclNativeMethods.
OSSOCK
.shutdown(m_Handle, (int) SocketShutdown.Send);
6332
errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
6348
errorCode = (SocketError) UnsafeNclNativeMethods.
OSSOCK
.recv(m_Handle.DangerousGetHandle(), null, 0, SocketFlags.None);
6361
errorCode = UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(
6436
UnsafeNclNativeMethods.
OSSOCK
.shutdown(m_Handle, (int)how);
6478
errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
6550
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
6588
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
6619
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
6647
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockopt(
6678
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockopt(
6731
SocketError errorCode = UnsafeNclNativeMethods.
OSSOCK
.getsockopt(
6777
errorCode = UnsafeNclNativeMethods.
OSSOCK
.ioctlsocket(
7005
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSASend_Blocking(
7235
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSASend(
7469
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAEventSelect(m_Handle, IntPtr.Zero, AsyncEventBits.FdNone);
7556
errorCode = UnsafeNclNativeMethods.
OSSOCK
.WSAEventSelect(m_Handle, m_AsyncEvent.SafeWaitHandle, blockEventBits);
7994
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSARecv(
8004
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSARecv(
8083
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSARecvFrom(
8094
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSARecvFrom(
8236
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSASend(
8246
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSASend(
8387
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSASendTo(
8398
socketError = UnsafeNclNativeMethods.
OSSOCK
.WSASendTo(
8475
internal UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElementFlags m_Flags;
8501
Initialize(filepath, null, offset, count, UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElementFlags.File,
8524
Initialize(null, buffer, offset, count, UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElementFlags.Memory,
8529
UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElementFlags flags, bool endOfPacket) {
8537
m_Flags |= UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElementFlags.EndOfPacket;
8563
get { return (m_Flags & UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElementFlags.EndOfPacket) != 0; }
8581
internal static readonly int s_ControlDataSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlData));
8582
internal static readonly int s_ControlDataIPv6Size = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6));
8583
internal static readonly int s_WSAMsgSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.
OSSOCK
.WSAMsg));
8668
internal UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElement[] m_SendPacketsDescriptor;
9228
UnsafeNclNativeMethods.
OSSOCK
.WSAMsg* pMessage = (UnsafeNclNativeMethods.
OSSOCK
.WSAMsg*)m_PtrWSAMessageBuffer;;
9619
new UnsafeNclNativeMethods.
OSSOCK
.TransmitPacketsElement[m_SendPacketsElementsFileCount + m_SendPacketsElementsBufferCount];
9830
socketError = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
9866
socketError = UnsafeNclNativeMethods.
OSSOCK
.setsockopt(
9948
UnsafeNclNativeMethods.
OSSOCK
.WSAMsg* PtrMessage = (UnsafeNclNativeMethods.
OSSOCK
.WSAMsg*)Marshal.UnsafeAddrOfPinnedArrayElement(m_WSAMessageBuffer, 0);
9952
UnsafeNclNativeMethods.
OSSOCK
.ControlData controlData = (UnsafeNclNativeMethods.
OSSOCK
.ControlData)Marshal.PtrToStructure(PtrMessage->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlData));
9960
UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6 controlData = (UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6)Marshal.PtrToStructure(PtrMessage->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.
OSSOCK
.ControlDataIPv6));
10054
bool success = UnsafeNclNativeMethods.
OSSOCK
.WSAGetOverlappedResult(