import "io/tcp";
TCP connection.
Inherits from Stream.
static function open(hostname: String, port: Integer): TCPConnection
function read_part(buf: Byte[], off: Integer, len: Integer, timeout: Integer): Integer
function write_part(buf: Byte[], off: Integer, len: Integer, timeout: Integer): Integer
read_part
and write_part
functions with a timeout: negative
value means infinite waiting (the default) and zero means no blocking. The timeout is in milliseconds.