Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  getting peer ip address from arg.clisock

Ke Han
Posted: Wed Sep 20, 2006 5:32 am Reply with quote
User Joined: 02 Mar 2005 Posts: 107 Location: Shanghai
I would like to get the client's ip address. I have found this
technique buried in yaws_server.erl in function maybe_auth_log(Item,
ARG).
Its quite a few lines of code to replicate in my app code.
Claes, can you please add this to your API todo list to provide for a
nice high-level function for ip retrieval??

thanks, ke han


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Wed Sep 20, 2006 7:21 am Reply with quote
Guest
ke han wrote:
> I would like to get the client's ip address. I have found this
> technique buried in yaws_server.erl in function maybe_auth_log(Item,
> ARG).


Maybe the best would be to add an additional field in the #arg
record. I'll do that.

/klacke


--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Wed Sep 20, 2006 7:48 am Reply with quote
Guest
Claes Wikstr

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum