×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2007
    Location
    shenzhen,china
    Posts
    23

    Question How to send variable-length buffer from IPC Server to IPC client?

    I use the IPC RSessionBase CServer2 method to implement a client App and a server App.
    They communicate with each other work well.

    But the API RSubSessionBase::SendReceive(TInt aFunction, const TIpcArgs &aArgs, TRequestStatus &aStatus) has limited MaxLength.

    If I set the aArgs to TIpcArgs args(aPtr) which aPtr has a MaxLength is 10k, When the Server send a buffer which length more than 10k to client by RMessage2.WriteL(0, aDes);

    They will occer Leave and the client can not received the whole buffer from Server.

    Is there any other API can support server App send unlimited length buffer to client App?

    Thanks!

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

    Re: How to send variable-length buffer from IPC Server to IPC client?

    No, there is no such type. But you can use GetDesLength and provide some alternative message if it is not enough - for example a message specifying the required length, then the client can try again (or just invoke a special getter method for getting the last result in a properly sized buffer).
    An alternative is to use shared memory, RChunk is the class you could search for. A message queue may also help, though it is almost as messy as the above mentioned one.

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    shenzhen,china
    Posts
    23

    Re: How to send variable-length buffer from IPC Server to IPC client?

    Thanks
    I thought RChunk is a good solution.
    I also think about other methods, however they all messy.

Similar Threads

  1. Replies: 5
    Last Post: 2010-01-29, 09:56
  2. Replies: 21
    Last Post: 2008-10-11, 12:54
  3. Replies: 3
    Last Post: 2008-03-14, 05:34
  4. How to get Data from Server using IPC?
    By marvik_34 in forum Symbian
    Replies: 1
    Last Post: 2008-01-22, 09:31
  5. creating a secure and isolated IPC server ?
    By navjotsingh1979 in forum Symbian
    Replies: 11
    Last Post: 2007-05-21, 11:05

Posting Permissions

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