×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    RSocket::Listen() and queue size

    Hi,

    the RSocket::Listen() method has the qSize (queue size) parameter. The maximum value is defined by SOMAXCONN which is 5. What exactly this queue parameter specifies? Is it the maximal number of connections, which could wait, until they are joined with blank socket by method RSocked:Accept()? Could this be made bigger?

    Thanks
    STeN

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: RSocket::Listen() and queue size

    Unfortunately I cannot check anything non-Symbian, but note that you have found SOMAXCONN in libc\sys\socket.h, which does not represent directly RSocket.
    So you can try what happens if you are Listening with 5/6 (without Accept), and initiating 6 connections from some client(s).

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    14

    Lightbulb Re: RSocket::Listen() and queue size

    hi Stenlik,
    In RSocket::Listen(qSize), qSize signifies the max no of client sockets connection requests which a server can listen.
    This can be increased also. It depends upon requirement.

  4. #4
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: RSocket::Listen() and queue size

    Quote Originally Posted by stenlik View Post
    Hi,

    the RSocket::Listen() method has the qSize (queue size) parameter. The maximum value is defined by SOMAXCONN which is 5. What exactly this queue parameter specifies? Is it the maximal number of connections, which could wait, until they are joined with blank socket by method RSocked:Accept()? Could this be made bigger?

    Thanks
    STeN
    Sten,

    The OpenGroup spec can be a good read:
    http://www.opengroup.org/onlinepubs/...ns/listen.html

Posting Permissions

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