On Mon, 2010-02-08 at 13:41 +0530, Supun Kamburugamuva wrote: > I'm looking for a way to log the source socket port for a socket connection > from a Class implementing the NHttpClientHandler. I'm interested in both > connection creation and close events. > > NHttpClientHandler class receives a instance of type NHttpClientConnection. > I can cast this to HttpInetConnection and get the required information. Is > this the correct approach for logging this information? >
Yes, it is. > Also when a connection is made, can I use the SessionRequestCallback > interface's completed method for logging the connection creation? > Yes, you can. This is precisely what SessionRequestCallback is for. Hope this helps Oleg > Thanks, > Supun.. > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org