Hi,

   Thx, It seems if your Widgets or WApplication, it can get the client ip
address, but If I inherits the WResource, the Http::Request doesn't provide
any client information. It seems WApplication got static instance and
retrieve the WEnvironment. But does it referred to the session of the that
moment ?

Regards,

Hilary

On Sun, Jan 10, 2010 at 10:00, Brad Hubbard <[email protected]> wrote:

>
>
> Hilary Cheng wrote:
> > Hi,
> >
> >     Does the WResource can provide the client IP address ?
>
> Hi Hilary,
>
> Look at WEnvironment::clientAddress() and WApplication::environment()
>
> Cheers,
> Brad
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to