×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    2

    Network Socket Programming using IP Multicast

    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!

  2. #2
    Registered User
    Join Date
    May 2008
    Posts
    2

    Re: Network Socket Programming using IP Multicast

    I forgot to mention that I'm using version 1.4.3 of python for S60 3rd Edition.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    2

    Re: Network Socket Programming using IP Multicast

    Hmm. i have the same problem. im using PyS60 1.9.7, have you already solve this problem?

  4. #4
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: Network Socket Programming using IP Multicast

    Quote Originally Posted by PedroRebelo View Post
    Any suggestions on how I can join an IP multicast group?
    Please, take a look in this bug report.

Similar Threads

  1. SOCKET PROGRAMMING: Client can not connect to server...
    By simbiyan in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2007-04-22, 20:00
  2. Nokia 6600 Network (Http and Socket) connections do not work!
    By jimmichr in forum Mobile Java Networking & Messaging & Security
    Replies: 11
    Last Post: 2006-07-14, 07:48
  3. problem in persistant socket connection
    By poms4symbian in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-03, 13:23
  4. Socket and thread issues with UI programming
    By mcloke74 in forum Symbian
    Replies: 3
    Last Post: 2005-06-30, 09:13
  5. Nokia 6600 Network (Http and Socket) connections do not work!
    By jimmichr in forum Mobile Java General
    Replies: 2
    Last Post: 2003-11-23, 20:42

Posting Permissions

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