Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Network route in Symbian

    Mobile and Embedded
    2
    4
    2298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Mikchel last edited by

      Hello.
      In my application i need to use WLAN as a server and GPRS conection as a client. I opened 2 network sessions with different IAP - WLAN and GPRS.
      Server side via WLAN works fine - QTcpServer accepts connection from my WiFi device but i can't connect via GPRS client (QTcpSocket) to some remote server. I get socket timeout error.
      WLAN interface has IP:169.254.58.46
      GPRS interface has IP: 172.28.163.149
      Server has IP: 172.29.36.44

      It seems that client doesn't find route path to remote server as they in different subnets.
      How can i set default route address to Symbian route table or may be there is some other solution for my problem?

      WBR,

      1 Reply Last reply Reply Quote 0
      • L
        leon.anavi last edited by

        Hi,

        I am not an expert regarding this issue but this article might be useful: http://wiki.forum.nokia.com/index.php/TSS000265_-_Specifying_routing_settings_to_a_specific_socket_connection

        Please note that it is written using the native Symbian C++ framework which can be successfully combined with Qt source code.

        Best regards,
        Leon

        http://anavi.org/

        1 Reply Last reply Reply Quote 0
        • M
          Mikchel last edited by

          Hi, Leon.
          Thank you for your answer.
          I think this article is useful for me. It's a strange thing - i searched in forum for adding gateway to network but didn't find that article.
          I solve my problem some other way: i use only one APN in each moment of time and start/stop other APN when it needs to send anything.
          It may be worse solution so i consider to use your advice.

          1 Reply Last reply Reply Quote 0
          • L
            leon.anavi last edited by

            I am glad that the link is useful :)

            Please also read this article as it shows good practices how to keep Symbian C++ and Qt code separated: http://wiki.forum.nokia.com/index.php/CS001642_-_Using_environment_macros_to_differentiate_platforms

            http://anavi.org/

            1 Reply Last reply Reply Quote 0
            • First post
              Last post