Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_ppp_down |
Function xn_ppp_downPerforms a down event on a PPP connection. int xn_ppp_down(int iface_no); Parametersiface_noInterface number returned by xn_attach. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. Possible values for this function are:
This function terminates a PPP connection, i.e. it resets the state information in preparation for the next open. This function has no effect on any of the options or values to be negotiated and does not close the interface. It will only shut down the PPP connection by setting the connection state to CLOSED or LISTEN. This routine should be called if xn_lcp_open fails due to the previous close not completing or the close handshake cannot be done (see xn_ppp_close) due to a line drop.
|