An object that connects to a remote host, returning a
Socket
, either synchronously or asynchronously:
connect()
to block until the socket is connected,
orconnectAsync()
to register a listener that will be
invoked when the socket is connected.newSocketConnector()
no type hierarchy
no supertypes hierarchy
Methods | |
close | Source Codeshared formal void close() Closes this socket connector. |
connect | Source Codeshared formal Socket connect() Block the current thread until a connected |
connectAsync | Source Codeshared formal void connectAsync(Selector selector, void connect(Socket socket), Anything(Exception)? connectFailure = null) Registers a connection listener on the
specified Parameters:
See also Selector |
Inherited Methods |
Methods inherited from: Object |