Take a look into the latest PyS60 Library Reference on Page 86.
There u'll find everything u need.:
Code:
Example 1:
#access point is selected from the list
apid = select_access_point()
apo = access_point(apid)
set_default_access_point(apo)
s = socket(AF_INET, SOCK_STREAM)
print apo.ip()
s.connect(('www.sourceforge.net',80))
s.send('GET /\r\n\r\n')
s.recv(100)
s.close()
apo.stop()
Example 2:
#Access point id is already known
apo = access_point(1)
set_default_access_point(apo)
s = socket(AF_INET, SOCK_STREAM)
s.connect(('www.sourceforge.net',80))
s.send('GET /\r\n\r\n')
s.recv(100)
s.close()
apo.stop()
Example 3:
#display interface ip.
#access point is selected from the list
apid = select_access_point()
apo = access_point(apid)
apo.start()
#Note that ip-address is given by operator, if static ip-address is not defined,
#when connection is started
print apo.ip()
#When connection is closed dynamic ip-address is released
apo.stop()
greetings
novis