Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address Function xn_lcp_want_accm |
Function xn_lcp_want_accmSets the Character Map to negotiate. int xn_lcp_want_accm(int iface_no, int host, DWORD opt_val); Parametersiface_noInterface number returned by xn_attach. hostSet negotiation flag for local or remote host (LOCAL_HOST or REMOTE_HOST). opt_valAsync control character map (see below). 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 establishes that the LPC Character Map option should be requested and assigns which Character Map to request. This map is a bit map which specifies which characters from 0 through 0x19 need to be escaped. Since the default is all bits set, i.e. every character (0 - 0x19) should be escaped, it is recommended that this routine be called to set up new character maps. Call this routine with host set to LOCAL_HOST to request an LCP Async-Control Character-Map. If the value specified is different from the default map specified in RFC 1172, then the ACCM option will be requested. The ACCM option will not be requested if the map is the same as the default. The option will be dropped if the remote host rejects the ACCM option requested in the Configuration-Request message. Call this routine with host set to REMOTE_HOST to request an alternative LCP Async-Control Character-Map if a request is received from the remote host or to suggest ACCM in a Config-NAK message if ACCM is not requested. If the value specified is different from the default map specified in RFC 1172, then the alternative ACCM option will be requested. The option value will be dropped after 10 retries if the Configuration-Requests received in response to the Configuration-NAK does not contain the option. The option value will be accepted after 10 retries if the Configuration-Requests received in response to the Configuration-NAK does not contain the value specified in NAK. The default is to not request this option.
|