Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_ppp_close |
Function xn_ppp_closeCloses a PPP connection but not the interface. int xn_ppp_close(int iface_no, int wait); Parametersiface_noInterface number returned by xn_attach. waitSpecify TRUE to wait for terminate handshake to complete. With FALSE, the function returns immediately. 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 closes a PPP connection. It has no effect on any of the options or values to be negotiated and does not close the interface. It only shuts down the PPP connection, i.e. it initiates the TERM/ACK handshaking. Call xn_ppp_init before calling this routine to guarantee that option values are reset before another LCP open is initiated from another host.
|