ReactOS 0.4.15-dev-7931-gfd331f1
cinfo.c File Reference
#include "precomp.h"
Include dependency graph for cinfo.c:

Go to the source code of this file.

Functions

TDI_STATUS SetConnectionInfo (TDIObjectID *ID, PCONNECTION_ENDPOINT Connection, PVOID Buffer, UINT BufferSize)
 

Function Documentation

◆ SetConnectionInfo()

TDI_STATUS SetConnectionInfo ( TDIObjectID ID,
PCONNECTION_ENDPOINT  Connection,
PVOID  Buffer,
UINT  BufferSize 
)

Definition at line 11 of file cinfo.c.

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
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
static BOOL Set
Definition: pageheap.c:10
#define ID
Definition: ruserpass.c:36
#define TCP_SOCKET_NODELAY
Definition: tcpioctl.h:104
#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

Referenced by InfoTdiSetInformationEx().