![]() |
Home |
|
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.
|