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