ReactOS  0.4.15-dev-2993-g14fbe80
ports.h
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: include/ports.h
5  * PURPOSE: Port allocation
6  * PROGRAMMERS: arty (ayerkes@speakeasy.net)
7  * REVISIONS:
8  * arty 20041114 Created
9  */
10 
11 #pragma once
12 
13 typedef struct _PORT_SET {
20 
22  UINT StartingPort,
23  UINT PortsToManage );
24 VOID PortsShutdown( PPORT_SET PortSet );
28 ULONG AllocatePortFromRange( PPORT_SET PortSet, ULONG Lowest, ULONG Highest );
CPPORT Port[4]
Definition: headless.c:35
ULONG AllocateAnyPort(PPORT_SET PortSet)
Definition: ports.c:69
NTSTATUS PortsStartup(PPORT_SET PortSet, UINT StartingPort, UINT PortsToManage)
Definition: ports.c:13
UINT StartingPort
Definition: ports.h:16
LONG NTSTATUS
Definition: precomp.h:26
RTL_BITMAP ProtoBitmap
Definition: ports.h:14
VOID DeallocatePort(PPORT_SET PortSet, ULONG Port)
Definition: ports.c:35
KSPIN_LOCK Lock
Definition: ports.h:18
UINT PortsToOversee
Definition: ports.h:17
unsigned char BOOLEAN
BOOLEAN AllocatePort(PPORT_SET PortSet, ULONG Port)
Definition: ports.c:47
PVOID ProtoBitBuffer
Definition: ports.h:15
ULONG AllocatePortFromRange(PPORT_SET PortSet, ULONG Lowest, ULONG Highest)
Definition: ports.c:86
struct _PORT_SET * PPORT_SET
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
unsigned int UINT
Definition: ndis.h:50
VOID PortsShutdown(PPORT_SET PortSet)
Definition: ports.c:31
unsigned int ULONG
Definition: retypes.h:1
struct _PORT_SET PORT_SET