You Are Here:

Community: Developer Discussion Boards

#1 Old Network Socket Programming using IP Multicast - 2008-05-14, 02:33

Join Date: May 2008
Posts: 2
PedroRebelo
Offline
Registered User
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!
Reply With Quote

#2 Old Re: Network Socket Programming using IP Multicast - 2008-05-14, 04:04

Join Date: May 2008
Posts: 2
PedroRebelo
Offline
Registered User
I forgot to mention that I'm using version 1.4.3 of python for S60 3rd Edition.
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
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

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