×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    17

    how to use RSocket class to transfer file ?

    i try to read file data to a struct, and transfer a part of data on each call of RSocket.Write(...), but it didn't work!
    can i use RSocket::Write() like this:
    while(iSeekPos < iFileSize)
    {
    iSock.Write(iStruct, iStatus);
    ...
    //read file and change iseekpos
    ...
    }
    RSocket::Write() is Async, should i change it to sync? like this:
    add follows after write():
    User::WaitForRequest(iStatus);
    ??
    who can help me ?
    thanks in advance!

  2. #2
    Regular Contributor
    Join Date
    May 2003
    Location
    India
    Posts
    136

    Re: how to use RSocket class to transfer file ?

    Hi,

    You are passing wrong parameter in write function.
    If u want read data, then pass TDesC8 variable.
    u have structure then pass istru.TDesC8 variable.

    Please check if that is error part or not.
    Thanks
    DB

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

    Re: how to use RSocket class to transfer file ?


  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    17

    Talking Re: how to use RSocket class to transfer file ?

    Thank you all, I have fixed the problem.

Similar Threads

  1. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  2. How to transfer a file using Ad Hoc Network in Nokia N95 8Gb
    By Archana Singh in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-04-21, 10:17
  3. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  4. Replies: 3
    Last Post: 2006-12-20, 11: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
  •  
×