An object that connects to a remote host, returning a Socket, either synchronously or asynchronously:

  • use connect() to block until the socket is connected, or
  • use connectAsync() to register a listener that will be invoked when the socket is connected.
By: Stéphane Épardaud

no type hierarchy

no supertypes hierarchy

Inherited Attributes
Attributes inherited from: Object
closeSource Codeshared formal void close()

Closes this socket connector.

connectSource Codeshared formal Socket connect()

Block the current thread until a connected Socket is returned.

connectAsyncSource Codeshared formal void connectAsync(Selector selector, void connect(Socket socket), Anything(Exception)? connectFailure = null)

Registers a connection listener on the specified selector that will be called when the socket is connected.

  • connectFailure = null
See also Selector
Inherited Methods
Methods inherited from: Object