Creates a new out-bound connection.
@param handler a handler that is notified when events occur for the
connection. Typically the host and port to connect to
would be supplied to the connection object inside the
logic which handles the {@link Type#CONNECTION_INIT}
event via
{@link #setConnectionHost(Connection, String, int)}
@return the newly created connection object.
@deprecated Use {@link #connectionToHost(String, int, Handler)} instead.
Creates a new out-bound connection. @param handler a handler that is notified when events occur for the connection. Typically the host and port to connect to would be supplied to the connection object inside the logic which handles the {@link Type#CONNECTION_INIT} event via {@link #setConnectionHost(Connection, String, int)} @return the newly created connection object. @deprecated Use {@link #connectionToHost(String, int, Handler)} instead.