PPPoE Client and Server Support
C-24
length of this name including the NULL terminator is defined by
PPPOE_NAMESIZE. If a longer name is supplied, this function will fail.
-
ServiceName – This is a required pointer to a NULL terminated string con-
taining the service name that is reported to PPPoE clients. The maximum
length of this name including the NULL terminator is defined by
PPPOE_NAMESIZE. If a longer name is supplied, this function will fail.
When successful, this function returns a handle to a new PPPoE server
instance The status individual connects is not available to the caller, but
tracked automatically by PPPoE. When sessions are added or destroyed, the
IP address callback supplied to NC_NetStart() is called and connections can
be tracked by the applications programmer via this function callback.
Destroy a PPPoE Server Session
pppoesFree
Syntax
void pppoesFree( HANDLE hPPPOES );
Parameter(s)
hPPPOES
Handle to PPPoE Server Session
Return Value
nothing
Description
This function is called to close and destroy a PPPoE server session that was
created with pppoesNew(). This function is always called once to shutdown
the PPPoE server. Any external client currently connected to the server is dis-
connected.