final ConnectListener listener )
{
if( connect_with_crypto ) {
//attempt encrypted transport
final TransportHelper helper = new TCPTransportHelper( channel );
TransportCryptoManager.getSingleton().manageCrypto( helper, shared_secrets, false, initial_data, new TransportCryptoManager.HandshakeListener() {
public void handshakeSuccess( ProtocolDecoder decoder, ByteBuffer remaining_initial_data ) {
//System.out.println( description+ " | crypto handshake success [" +_filter.getName()+ "]" );
TransportHelperFilter filter = decoder.getFilter();
setFilter( filter );