1 /* 2 * PROJECT: ReactOS API Tests 3 * LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+) 4 * PURPOSE: Utility function declarations for calling AFD 5 * COPYRIGHT: Copyright 2015 Thomas Faber (thomas.faber@reactos.org) 6 */ 7 8 #pragma once 9 10 NTSTATUS 11 AfdCreateSocket( 12 _Out_ PHANDLE SocketHandle, 13 _In_ int AddressFamily, 14 _In_ int SocketType, 15 _In_ int Protocol); 16 17 NTSTATUS 18 AfdBind( 19 _In_ HANDLE SocketHandle, 20 _In_ const struct sockaddr *Address, 21 _In_ ULONG AddressLength); 22 23 NTSTATUS 24 AfdConnect( 25 _In_ HANDLE SocketHandle, 26 _In_ const struct sockaddr *Address, 27 _In_ ULONG AddressLength); 28 29 NTSTATUS 30 AfdSend( 31 _In_ HANDLE SocketHandle, 32 _In_ const void *Buffer, 33 _In_ ULONG BufferLength); 34 35 NTSTATUS 36 AfdSendTo( 37 _In_ HANDLE SocketHandle, 38 _In_ const void *Buffer, 39 _In_ ULONG BufferLength, 40 _In_ const struct sockaddr *Address, 41 _In_ ULONG AddressLength); 42