Re: client IP address

Andreas Kostyrka <[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <CAMWQy6YQu-4ytLchw2AX0y2u3ktf8KA+Pyfnik5=4Nv8X3+-YQ@mail.gmail.com>
Well, the usecase is replacing legacy code, and the interface includes
passing the address Pinto the called code (it's a crazyily broken
implementation of something like flame).

Andreas
Am 21.01.2013 19:17 schrieb "Irmen de Jong" <[email protected]>:

> On 21-1-2013 17:03, Andreas Kostyrka wrote:
> > Any way to get the client address of a request inside the called method?
>
> Nope, not at this time.
>
>
> > The only way that I've fathomed from the source code would be frame
> walking, but that's
> > neither portable beyond CPython, nor very elegant.
>
> Agreed.
>
> What is your use-case?
>
> Can't you solve it by making the client explicitly known to the server by
> means of a
> normal Pyro method call that tells the server about the client. You can
> then either pass
> the client's IP address or use any other means that identifies your client.
> See the 'shoppingcart' example that more or less does this by letting the
> server know
> about the real client's name...
>
>
> Irmen
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
> _______________________________________________
> Pyro-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyro-core
>

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412

_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.