Small style thing here. It could jus tbe _connectedToHost = messageSender.sendRegistration( LISTEN_PORT, filter.events(), filter.count(), 0, 0 );