aboutsummaryrefslogtreecommitdiff
path: root/src/modem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modem.h')
-rw-r--r--src/modem.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modem.h b/src/modem.h
index 31f9fee..544c4cc 100644
--- a/src/modem.h
+++ b/src/modem.h
@@ -26,20 +26,23 @@
#define _MODEM_WAIT_RING
-int modem_accept_wait(int fd);
/*
* Waits for RING (ifdef _MODEM_WAIT_RING), accepts incoming calls. Return is non-zero when cennection fails.
* */
+int modem_accept_wait(int fd);
-int modem_command(int fd, char* cmd, int timeout_ms);
/*
* Execute an AT command. return is non-zero if answer is not OK
* */
+int modem_command(int fd, char* cmd, int timeout_ms);
-int modem_run(int fd, int argc, char* argv[]);
/*
* Run a program with modem as STDIO. checks if connection is still alive & process is still active.
* will close fd on successful return
* */
+int modem_run(int fd, int argc, char* argv[]);
+/*
+ * Spawn a telnet server
+ * */
void dialup_server(struct prog_params params);