Home |
Function xn_add_host_table_entry Function xn_delete_host_table_entry Function xn_interface_open_config Function xn_interface_ethernet_statistics Function xn_interface_statistics Function xn_hangup Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
Function xn_hangupxn_hangup hangs up a Hayes compatible modem. int xn_hangup(int iface_no, char * term_str); Parametersiface_noInterface number returned by xn_attach. term_strLine termination string for sending modem commands (usually "\r"). return valueReturns 0 if successful, otherwise -1. 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 hangs up the modem. First it sends the offline command (i.e. "+++"). After it receives a response "OK", it sends the hangup command "ATH0".
|