dev@grizzly.java.net

need some help

From: rama <rama.rama_at_tiscali.it>
Date: Sun, 30 Nov 2008 22:34:16 +0100

dear friends,

i need some help with this piece of code.

public class EulerResAdapter implements Adapter {

public void service(Request req, final Response res) throws Exception {
        req.remoteAddr();
}

//blablabla (other method)

}


after adding this adapter
   st = new SelectorThread();
   st.setPort(port);
   st.setMaxThreads(maxThreads);
   st.setAdapter(new EulerResAdapter());

req.remoteAddr throw a nullpointer :(


btw, i use a method to serve file on this adapter, that work like a
charm.
the only problem is that i don't understand how to get the ip address
of the remote addrs


there is a way to get the remote ip address of a req?

best regards