Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User rmesino's Avatar
    Join Date
    Mar 2009
    Posts
    3
    Hi, i want implement non blocking sockets in python s60...

    it's possible ?

    please help me !!!

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    Hi,

    I think you can do it by calling the setblocking method of the socket object with 0 as the argument. PyS60 1.9.0 and later supports this, the setblocking method doesn't seem to be implemented in versions upto 1.4.5.

    http://docs.python.org/library/socke...et.setblocking

    You can search with Google to see if there are other tricks for this.

  3. #3
    Nokia Developer Champion marcelobarrosalmeida's Avatar
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    752
    Hi bogdan/rmesino

    Just an aside: in 1.9.3 recv() obeyed setblocking() but accept() did not - see this thread. I did not tested again with 1.9.4, but you can do it. Some code here.

    Bye

    Marcelo Barros

Similar Threads

  1. help~~~about the CMdaAudioInputStream
    By Dragon_L in forum Symbian Media (Closed)
    Replies: 14
    Last Post: 2008-11-05, 06:11
  2. Using sockets in the fullduplex example
    By niranjancsc in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-03-22, 12:52
  3. Blocking behaviour of MIDP 2.0 sockets - getting it straight
    By uttumuttu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-06-21, 08:39
  4. Where to find application that uses sockets?
    By doctordwarf in forum Mobile Java General
    Replies: 1
    Last Post: 2004-03-10, 15:45
  5. WAP Buffering / Sockets / Http / GPRS
    By Ian Johnson in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2003-04-11, 13:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved