Socket.open

bool open (String host, String encoding)

Parameters

host The server to connect to.
encoding The encoding to be used for the connection

Description

Opens the connection for subsequent read/write operations.

The call to open() and the call to listen() are mutually exclusive. Call one function or the other, not both.