ArcBasicDocs

OpenTCPStream

Connects to a server.

OpenTCPStream ( ip$,port )

Parameters

ip$
the server's address, as a name such as "example.com" or numbers such as "192.168.1.5".
port
the server's port number.

Description

Connects to a server over the network and gives back a stream, or 0 if it can't connect. Read and write the stream with the same commands as a file, such as WriteLine, ReadLine and ReadAvail.

See also