| Reply | « Previous Thread | Next Thread » |
|
Hi guys,
I was trying to port a Zeroconf Service Discovery built on top of python 2.2 (http://sourceforge.net/projects/pyzeroconf) to S60. However, while I can leave some lines pertaining to "socket.setsockopt()" out, the following lines of code present in Zeroconf.py are important: ... self.socket.setsockopt(socket.SOL_IP, socket.IP_MULTICAST_IF, socket.inet_aton(self.intf) + socket.inet_aton('0.0.0.0')) self.socket.setsockopt(socket.SOL_IP, socket.IP_ADD_MEMBERSHIP, socket.inet_aton(_MDNS_ADDR) + socket.inet_aton('0.0.0.0')) ... When i try to execute Zeroconf.py on the S60 emulator, I get an error stating that: "AttributeError: 'module' object has no attribute 'SOL_IP'". I already tried to change SOL_IP to IPPROTO_IP, but I still get the same problem. Any suggestions on how I can join an IP multicast group? Thanks in advance! |
| PedroRebelo |
| View Public Profile |
| Find all posts by PedroRebelo |
|
I forgot to mention that I'm using version 1.4.3 of python for S60 3rd Edition.
|
| PedroRebelo |
| View Public Profile |
| Find all posts by PedroRebelo |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| SOCKET PROGRAMMING: Client can not connect to server... | simbiyan | Symbian Networking & Messaging | 5 | 2007-04-22 21:00 |
| Nokia 6600 Network (Http and Socket) connections do not work! | jimmichr | Mobile Java Networking & Messaging & Security | 11 | 2006-07-14 08:48 |
| problem in persistant socket connection | poms4symbian | Browsing and Mark-ups | 0 | 2006-01-03 14:23 |
| Socket and thread issues with UI programming | mcloke74 | Python | 3 | 2005-06-30 10:13 |
| Nokia 6600 Network (Http and Socket) connections do not work! | jimmichr | Mobile Java General | 2 | 2003-11-23 21:42 |