Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_ppp_init |
Function xn_ppp_initSets all PPP options to their default values. int xn_ppp_init(int iface_no, int async_link); Parametersiface_noInterface number returned by xn_attach. async_linkSet to TRUE for asynchronous links; FALSE for all others. This parameter should usually be set to TRUE. 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 sets all PPP configuration options to their default values. This includes whether to request or negotiate options, option values, PAP user accounts, login information, etc. This function does not set the state information back to initial values. xn_ppp_down or xn_ppp_close need to be called to reset state information. The parameter async_link affects the default value used for the ACCM LCP option, where synchronous links use OxFFFFFFFF as the default value and all others use 0. xn_attach must be called prior to this routine. All other PPP API calls to set negotiation options, open IPCP, etc. should be called after this routine. This routine as well as all configuration routines should be called prior to xn_ppp_close. This guarantees that option values are reset before another LCP open is initiated from another host.
|