You Are Here:

Community: Developer Discussion Boards

#1 Old Retrieving port e current IP of a socket - 2009-01-23, 17:00

Join Date: Nov 2008
Posts: 7
mircomusolesi
Offline
Registered User
Dear all,

What is the best way of retrieving the port number of a socket that has been assigned dynamically with:

serverSock.bind( ("127.0.0.1",0) )

?

Btw, is there another way of retrieving the ip address of the host other than:

apid = socket.select_access_point()
apo = socket.access_point(apid)
socket.set_default_access_point(apo)
apo.start()
self.phoneIp = apo.ip()

i.e. avoiding to execute apo.start()

Thanks,
Mirco
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while writing on perticular port using socket Kranti Symbian Networking & Messaging 0 2008-11-04 11:45
SIP/JSR180: Registration fails due to sending/listening port mismatch at client shiv_nitjai Mobile Java Networking & Messaging & Security 0 2008-10-14 13:43
Datagram client port problem khalandar Mobile Java Networking & Messaging & Security 4 2007-03-26 07:07
How to get current Bluetooth socket size berny_ Symbian Networking & Messaging 1 2006-11-28 10:00
SMS with a port number lost if no application registered for that port? Ucomania Mobile Java General 3 2004-08-26 11:15

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