summaryrefslogtreecommitdiff
path: root/digital/avr/modules/host/mex.host.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/avr/modules/host/mex.host.c')
-rw-r--r--digital/avr/modules/host/mex.host.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/digital/avr/modules/host/mex.host.c b/digital/avr/modules/host/mex.host.c
index 8921cadd..349ee3b6 100644
--- a/digital/avr/modules/host/mex.host.c
+++ b/digital/avr/modules/host/mex.host.c
@@ -395,6 +395,13 @@ mex_node_connect (void)
}
}
+/** Query connection status, returns 0 if not connected. */
+int
+mex_node_connected (void)
+{
+ return mex_node_global.socket != -1;
+}
+
/** Close connection. */
void
mex_node_close (void)