ReactOS 0.4.16-dev-297-gc569aee
cinfo.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: tcpip/cinfo.c
5 * PURPOSE: Per-socket connection information.
6 * PROGRAMMER: Jérôme Gardou
7 */
8
9#include "precomp.h"
10
12 PCONNECTION_ENDPOINT Connection,
15{
16 ASSERT(ID->toi_type == INFO_TYPE_CONNECTION);
17 switch (ID->toi_id)
18 {
20 {
22 if (BufferSize < sizeof(BOOLEAN))
24 Set = *(BOOLEAN*)Buffer;
25 return TCPSetNoDelay(Connection, Set);
26 }
27 default:
28 DbgPrint("TCPIP: Unknown connection info ID: %u.\n", ID->toi_id);
29 }
30
32}
unsigned char BOOLEAN
TDI_STATUS SetConnectionInfo(TDIObjectID *ID, PCONNECTION_ENDPOINT Connection, PVOID Buffer, UINT BufferSize)
Definition: cinfo.c:11
Definition: bufpool.h:45
#define DbgPrint
Definition: hal.h:12
NTSTATUS TCPSetNoDelay(PCONNECTION_ENDPOINT Connection, BOOLEAN Set)
Definition: tcp.c:734
#define ASSERT(a)
Definition: mode.c:44
unsigned int UINT
Definition: ndis.h:50
static BOOL Set
Definition: pageheap.c:10
#define ID
Definition: ruserpass.c:36
#define TCP_SOCKET_NODELAY
Definition: tcpioctl.h:104
LONG TDI_STATUS
Definition: tdi.h:36
#define INFO_TYPE_CONNECTION
Definition: tdiinfo.h:71
#define TDI_INVALID_PARAMETER
Definition: tdistat.h:52
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254