×

Discussion Board

Results 1 to 3 of 3

Thread: gSoap timeout?

  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    gSoap timeout?

    Hi,

    Short story
    I need to know which library to link, in order to use the select() function.

    Long story, for those interested

    Since I've failed to implement timeout using Nokia's Web Service package, I've tried to use gSoap.

    The problem now is that SOAP implements timeout using Berkeley socket functions, and specifically the function select(), which on UNIX is defined in sys/select.h. All the related code is #deffed out in the gSoap generated code in case of Symbian. I've #deffed it in, and now I'm looking for ways to make it work.

    This is what I've found so far:
    • sys\select.h exists under epoc32\include\stdapis, but not under epoc32\include\libc.
    • libc is the one that SOAP documentation says we need to use on Symbian.
    • When I try to use stdapis instead of libc it compiles fine, but then I get linkage errors for the following symbols: atol, __inet_addr, select.
    • When I try to use only libc and add a manual forward declaration of select(), I get a linkage error.


    Anybody knows which library I should link with to get select()? Would it cause me some linkage ambiguity, similar to the compilation collisions I had?

    Thanks,
    Nadav

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

    Re: gSoap timeout?

    I do not know the answer, but it is not exactly promising that "» Symbian OS v9.1 » Symbian OS reference » C++ component reference » Syslibs STDLIB" in the SDK Help contains many socket-related functions (like recv, recvfrom, etc.), and it does not mention select.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: gSoap timeout?

    Quote Originally Posted by wizard_hu_ View Post
    I do not know the answer, but it is not exactly promising that "» Symbian OS v9.1 » Symbian OS reference » C++ component reference » Syslibs STDLIB" in the SDK Help contains many socket-related functions (like recv, recvfrom, etc.), and it does not mention select.
    Well, there must be a way to make it work, because I've seen some posts by people who have actually used it (though I don't remember where...).

    Anyway, I think I'm going to give up on this, and instead use a regular asynchronous HTTP client, writing and reading the XML's manually (like in the Yahoo Images example).
    Last edited by nadav70; 2008-06-06 at 17:21.

Similar Threads

  1. HttpConnection timeout property -- Is it possiblee to set it (or at least read it)?
    By _ericlo_ in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-06-11, 11:18
  2. Changing SIP timeout value
    By vivek chandak in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-12-19, 06:07
  3. Regarding GSOAP and Release build
    By sajain in forum Symbian
    Replies: 0
    Last Post: 2005-05-09, 23:08
  4. bluetooth connection timeout
    By arto_koskela in forum Symbian
    Replies: 0
    Last Post: 2005-01-19, 07:54
  5. NO TimeOut @ PrepareRequest / IPCSyncRequest
    By adestis in forum Multimodecards
    Replies: 3
    Last Post: 2003-03-27, 07: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
  •  
×