Connection connection = Proton.connection();
connection.setContainer(_name);
ListenerContext ctx = (ListenerContext) l.getContext();
connection.setContext(new ConnectionContext(ctx.getAddress(), c));
c.setConnection(connection);
Transport transport = c.getTransport();
//TODO: full SASL
Sasl sasl = c.sasl();
if (sasl != null)
{
sasl.server();
sasl.setMechanisms(new String[]{"ANONYMOUS"});
sasl.done(Sasl.SaslOutcome.PN_SASL_OK);
}
transport.ssl(ctx.getDomain());
connection.open();
}
// process connectors, reclaiming credit on closed connectors
for (Connector<?> c = _driver.connector(); c != null; c = _driver.connector())
{