Hi Stefano,
nice to see you will put your hands on this soon :-) I was really
intressed to test dnsjnio too after i read you message in mina-dev list.
Unfortanaly i had now time yet todo some tests.
I whould prefer to use the Future or the Listener, but like i said i had
no time to review yet. Be sure i will try to help if i have some free time.
bye
Norman
Stefano Bagnara schrieb:
> Hi all,
>
> I'm studying how to integrate dnsjnio [1] into jSPF to enable
> asynchronous lookup for spf records.
>
> I plan to start a branch in jSPF for this as soon as I'll have the
> time to play with it a bit more.
>
> dnsjnio provides asynchronous lookup by 2 means:
>
> lookup(request, ResponseListener)
> that returns soon and call the listener as soon as the result is
> available.
>
> lookup(request, id, ResponsePool)
> that will simply place the response in the responsepool identifying it
> with an id.
>
> jSPF currently needs asynchronous dns lookups in many cases:
> 1) retrieve the spf record for a given domain
> 2) run checks: most mechanisms/modifiers require dns lookups
> 3) expand macros: sometimes it needs to expand the "client domain"
> macro and this require a dns lookup (the first time).
>
> The current public interface to jSPF lookups is:
> ---
> public SPFResult checkSPF(String ipAddress, String mailFrom, String
> hostName) {
> ---
>
> What is the most common interface for asynchronous result ?
>
> 1) return SPFResultFuture ?
> 2) provide a ResponseListener ?
> 3) require a ResponsePool to be filled with the reply?
>
>
> Have you any hint before I start looking into this issue?
>
> Stefano
>
> [1] http://sourceforge.net/projects/dnsjnio/
> [2]
> http://blog.nominet.org.uk/tech/2006/08/08/nonblocking-extensions-to-dnsjava/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> !EXCUBATOR:1,46276a5a39892703838238!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]