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_autoanswer Function xn_send_ethernet_frame Function cb_wr_screen_string_fnc Function cb_rs232_connection_lost_fnc |
Function xn_autoanswerxn_autoanswer waits for an incoming call and establishes a physical modem connection. int xn_autoanswer(int iface_no, char * setupstr, word timeout, char * term_str); Parametersiface_noInterface number returned by xn_attach. setupstrThe modem initialization string (e.g. "ATZ0"). timeoutNumber of seconds to wait. 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:
If the function returns 0, a physical modem connection has been built up. xn_autologin can then be used to connect to a remote host.
|