Serial HDLC Client and Server Support
C-18
character (0 to 31) that must be escaped when sent by the peer. If the
PPPFLG_SIOPT_SENDCMAP option is not set, it is assumed that all 32
characters must be sent via the escape sequence.
-
IPServer – This is the IP address in network format of the TCP/IP stack
reported to the peer
-
IPMask – This is the IP subnet mask of the peer’s IP network reported to
the peer
-
IPClient – This is the IP base address in network format of the IP address
to be assigned to the client.
When successful, this function returns a handle to a new serial HDLC instance
The current status of the connection can be queried at any time by calling
hdlcGetStatus().
Destroy a Serial HDLC Server Session
hdlcsFree
Syntax
void hdlcsFree( HANDLE hHDLC );
Parameter(s)
hHDLC
Handle to HDLC Server Session
Return Value
nothing
Description
This function is called to close and destroy a serial HDLC server session that
was created with hdlcsNew(). This function is always called once for every
HDLC instance handle. If the connection is no longer active, it frees the
instance memory. If the connection is still active, it first disconnects the call
first.
Get the Status of a Serial HDLC Server Session
hdlcsGetStatus
Syntax
uint hdlcsGetStatus( HANDLE hHDLC );
Parameter(s)
hHDLC
Handle to HDLC Server Session
Return Value
This function returns a uint that will be set to one of the following values:
SI_CSTATUS_WAITING
Connection is idle (PPPoE
session opening)
SI_CSTATUS_NEGOTIATE
Connection in LCP negotiation
stage
SI_CSTATUS_AUTHORIZE
Connection in authorization
stage