socket\tcp\Client
This module provides non-blocking TCP client.
Usage¶
Use function connect
to obtain a context manager that represents an estabilished TCP connection to the server. Use the [Connection] module from this package to perform read
and write
operations on this connection.
Example:
with socket\tcp\Client::connect "localhost" 5555 as connection
socket\tcp\Connection::write connection "hello"
end
Last update: May 16, 2021