about summary refs log tree commit diff
path: root/Functions/TCP/tcp_command
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/TCP/tcp_command')
-rw-r--r--Functions/TCP/tcp_command3
1 files changed, 3 insertions, 0 deletions
diff --git a/Functions/TCP/tcp_command b/Functions/TCP/tcp_command
new file mode 100644
index 000000000..8a4f02504
--- /dev/null
+++ b/Functions/TCP/tcp_command
@@ -0,0 +1,3 @@
+tcp_send $* || return 1
+tcp_read -d -t ${TCP_TIMEOUT:=0.3}
+return 0