You Are Here:

Community: Developer Discussion Boards

#1 Old Can I get the local address from the stripped-down socket lib? - 2005-02-07, 01:32

Join Date: Jan 2005
Posts: 11
eichin
Offline
Registered User
Trying to implement a client for a protocol that includes the client-side IPV4 address in a UDP packet. (No, the protocol doesn't work from behind a NAT :-) No socket.gethostname, no socket.getpeername (which wouldn't help because it's not a connected socket anyway)... nothing obvious in e32socket... suggestions?
Reply With Quote

#2 Old 2005-02-08, 17:01

Join Date: Jan 2005
Posts: 11
eichin
Offline
Registered User
(For now, I've kludged it to urllib.open.read a remote web page that just returns the client address as a string; for the simple case, this would work with NAT'ed addresses too, since all that matters is the address "presented" to the outside world, but isn't quite what I'm looking for.)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia