nopasaran.utils.send_echo_once_tcp¶
- nopasaran.utils.send_echo_once_tcp(ip, port, message, timeout=0.5)¶
Open a TCP connection to the echo server, send the message, receive any echoed data, then close the connection. Returns the echoed string or None on error/timeout.