Home |
Function xn_ipcp_want_compress Function xn_ipcp_want_dns_address |
Function xn_ipcp_want_compressSets IPCP negotiation for compression. int xn_ipcp_want_compress(int iface_no, int host, int num_slots); Parametersiface_noInterface number returned by xn_attach. hostSet negotiation flag for local or remote host (LOCAL_HOST or REMOTE_HOST). num_slotsNumber of slots to send in request. This value specifies how many concurrent TCP connections will support compression. 16 is a typical value to use. 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 whether to request Van Jacobson Compression. Van Jacobson Compression significantly reduces the size of the IP header and TCP header in IP packets. Only TCP packets are compressed. In order to request the Van Jacobson Compression, call this function with host set to LOCAL_HOST. The option will be requested in the Configuration-Request message sent to the remote host. Requesting this option informs the remote host that compressed TCP packets may be received. The option will be dropped if it is rejected by the remote host. In order to suggest an option if it is not requested by the remote host, call this function with host set to REMOTE_HOST. The option will be suggested in a Configuration-Nak sent to the remote host which informs the remote host that compressed packets may be sent. The option will be dropped if the Configuration-Request received in response to the Configuration-Nak does not request the option. The default value is not to request the option. Function xn_ipcp_want_dns_address
|