×

Discussion Board

Results 1 to 5 of 5

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    10

    Question Need Help in using RSocket for sending data!

    Hi,

    In my application I have to send data to server, upon request.

    Data sending part ( iSocket.Send(data,iStatus) ) runs in a separate active object.

    When this object is Active and there is another immediate send request (from another part of the code) , the new data gets discarded.

    How do handle this, so that all the data gets sent to the server?

    Is there is queue mechanism avaible in symbian where I temporarily buffer the data to be sent?

    Or is there any other way to solve this problem?

    Please help me on this.

    Thanks.

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: Need Help in using RSocket for sending data!

    The other Send request is also catered through this Active object only? And is that sending is in the control of user?(let say data is sent on some button press)

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    10

    Re: Need Help in using RSocket for sending data!

    Hi Vineet,

    Thanks for your reply.

    Yes. Exactly.

    Send request tries to happen through the same AO uponsome other activity.

    How to solve the problem?

    --
    Thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Need Help in using RSocket for sending data!

    Basically you would need to construct separate instance of the AO for different tasks, or implement logic that takes care that previous activity has completed before you start new one.

    There is no general queue mechanism, but you could do one using different APIs, f.ex. you could use RPointerArray to store your data, and once the activity with AO has completed, you could get the zero-index item out, and remove the index from array, and do this untill the array is empty.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,043

    Re: Need Help in using RSocket for sending data!

    I think when iSocket.Send() completes then RunL() gets called after the data has been sent. Inside RunL() various cases must be handled(like if data is send successfully or there occurred some error etc), so you can take up a bool variable & make it false/true inside that case in RunL(), signifying that data has been sent. Now when some other data send request is there then check for that variable's status & then only send the data accordingly.

Similar Threads

  1. Is it able to sending and receiving data via single RSocket at the same time?
    By shibtom in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2010-11-02, 01:51
  2. RSocket.Send not sending for second time
    By nirtanami in forum Symbian
    Replies: 0
    Last Post: 2009-01-05, 10:14
  3. RSocket for SMS sending in 2nd ed
    By truf in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-01-23, 08:05
  4. Bluetooth using RSocket - sending data
    By VigenIssahhanjan in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-04-20, 23:23
  5. Sending/receiving through the RSocket
    By chan_fookmun in forum Symbian
    Replies: 0
    Last Post: 2005-12-27, 03:44

Posting Permissions

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