[mini] Add new JIT flag JIT_FLAG_DISCARD_RESULTS to reduce the noise when profiling...
[mono.git] / mono / metadata / socket-io-windows-internals.h
1 /*
2 * socket-io-windows-internals.h: Windows specific socket code.
3 *
4 * Copyright 2016 Microsoft
5 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
6 */
7 #ifndef __MONO_METADATA_SOCKET_IO_WINDOWS_INTERNALS_H__
8 #define __MONO_METADATA_SOCKET_IO_WINDOWS_INTERNALS_H__
9
10 #include <config.h>
11 #include <glib.h>
12 #include <mono/io-layer/io-layer.h>
13
14 SOCKET alertable_accept (SOCKET s, struct sockaddr *addr, int *addrlen, gboolean blocking);
15 int alertable_connect (SOCKET s, const struct sockaddr *name, int namelen, gboolean blocking);
16 int alertable_recv (SOCKET s, char *buf, int len, int flags, gboolean blocking);
17 int alertable_recvfrom (SOCKET s, char *buf, int len, int flags, struct sockaddr *from, int *fromlen, gboolean blocking);
18 int alertable_WSARecv (SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRecvd, LPDWORD lpFlags, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, gboolean blocking);
19 int alertable_send (SOCKET s, char *buf, int len, int flags, gboolean blocking);
20 int alertable_sendto (SOCKET s, const char *buf, int len, int flags, const struct sockaddr *to, int tolen, gboolean blocking);
21 int alertable_WSASend (SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRecvd, DWORD lpFlags, LPWSAOVERLAPPED lpOverlapped, LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine, gboolean blocking);
22
23 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT | HAVE_UWP_WINAPI_SUPPORT)
24 BOOL alertable_TransmitFile (SOCKET hSocket, HANDLE hFile, DWORD nNumberOfBytesToWrite, DWORD nNumberOfBytesPerSend, LPOVERLAPPED lpOverlapped, LPTRANSMIT_FILE_BUFFERS lpTransmitBuffers, DWORD dwReserved, gboolean blocking);
25 #endif
26
27 #endif // __MONO_METADATA_SOCKET_IO_WINDOWS_INTERNALS_H__