×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    13

    RSocket problem (N95 & Windows XP)

    I try to create client-server software, where N95 (client) connects to the laptop (server) via WLAN (ad-hoc). Laptop assigns IP address dynamically.

    The problem is that creating the connection takes quite a long time i.e. until laptop has valid IP address (about 30 seconds). The RSocket::Connect() (active method) call fails because of this? What I have tried is based very closely of the examples of the previous and current examples of Nokia.

    I have tried to find a solution how to monitor the connection status and notice when all the negotiation and dynamic IP address assignments are done but I have not found working solution. Only way I am able to get this work is to first wait until the laptop has everything ready and then call manually RSocket::Connect() method, but this is not very good approach at the end.

    So, any help? Is it possible to monitor to connection as far I would like to or how to solve long delay before I can call RSocket::Connect() method? Is only way to use static IP address on the laptop (again, not good thing in my case).

    [EDIT:] I forgot to wrote that RSocket::Connect() status returns -191. Also the code works fine in emulator (i.e. all the connections are made as should).
    Last edited by mhakkara; 2008-03-03 at 21:18.

  2. #2
    Registered User
    Join Date
    Jan 2006
    Posts
    47

    Re: RSocket problem (N95 & Windows XP)

    Hi,
    first -191 means KErrHostUnreach(Unable to reach server).It might be because of unable to find specified server by client.

    Some time ago I was trying the same as you are doing, and gone through same case. But I was using GPRS network instead of WLAN. Code was working fine on emulator but not on device. But at the end I found that it was Service provider's problem. As I changed SIM card and used different service provider (and obviously different IAP) my client was working fine. In both situations there was some delay while connecting to server ( as you said 30 sec, I did not checked it).

    So if possible try to use different service provider and check what happen.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Ukraine
    Posts
    56

    Re: RSocket problem (N95 & Windows XP)

    Hi
    you can try to do
    this via active objects

    I mean in CActive::Run if you get error
    just try to connect again

  4. #4
    Registered User
    Join Date
    May 2004
    Posts
    13

    Re: RSocket problem (N95 & Windows XP)

    Quote Originally Posted by sashaslonmailer View Post
    Hi
    you can try to do
    this via active objects

    I mean in CActive::Run if you get error
    just try to connect again
    I do have an active object and the solution I did is just trying several times to create socket connection (connect). Basically if I am not able to find the server in one minute, I give up. Not very sophisticated but, well, it works now.

Similar Threads

  1. Nokia N95 8GB Music Player + earpiece problem! Help!
    By d0ud0u in forum General Development Questions
    Replies: 2
    Last Post: 2008-02-27, 05:08
  2. Problem enumerating camera sizes on N95
    By rvogt in forum Symbian Media (Closed)
    Replies: 10
    Last Post: 2007-11-29, 22:53
  3. Replies: 0
    Last Post: 2007-07-14, 13:35
  4. Problem MMC+USB Connection
    By Fede81 in forum Symbian
    Replies: 1
    Last Post: 2007-06-14, 06:13
  5. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21

Posting Permissions

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