Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Mohan Kumar's Avatar
    Join Date
    Mar 2007
    Posts
    3
    Hi,

    Iam Working on socket Example in Sdk.Iam sending a request to a server and i get a message form the server,but i want to send the next request once i read the full message. I tried if isocket Reader is not Active but since read function is call in a CActive Run function it is alway's Active.I tried if iStatus KErrNone ,but After it read the last character from the server it show's iStatus = KErrNone.Is there any method to check that socket reader has read the full message.Please Some one Help me.

  2. #2
    Regular Contributor cdavies's Avatar
    Join Date
    May 2007
    Posts
    463
    Stream sockets like TCP are just that, streams, and streams don't have an end. If you want to know when you've read the complete message, the protocol needs some way to signal that.

    Examples of techniques that various TCP protocols use:

    HTTP - Uses a double CRLF to signal the termination of the header, then either the content length header or specific encoding method to signal when to stop reading the body.

    XMMP - Uses the termination of an XML document to indicate the session is complete.

    FTP - Closes the socket after it writes the last byte of data to signal it is complete.
    Get Resolvr - The Zeroconf framework for Symbian OS free today. Make your IP networking applications fun and easy to use. http://www.novelinteractions.com/resolvr/
    Proud to be the only autorickshaw owner in Cambridge - http://blog.novelinteractions.com/images/tuktuk.jpg

  3. #3
    Registered User Mohan Kumar's Avatar
    Join Date
    Mar 2007
    Posts
    3
    Thanks for your quick reply Cdavies, i Will try and reply.

Similar Threads

  1. Server Socket Creation Problem
    By emailatravi in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-12-21, 12:26
  2. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  3. Not able to read message
    By muneendra78 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-10-23, 04:45
  4. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46
  5. Doubt in Nokia PC Connrctivity SDK 2.1 demo (Visual basic).
    By narumugai in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved