×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    16

    Unhappy CSocketsEngine::ResponseReceived

    Hallo EvereyOne!
    I am using 60 2nd edition SDK pack 3 standart socket Examples
    I have next problem with this code.


    void CSocketsEngine::ResponseReceived( const TDesC8& aBuffer )
    {
    TBuf8<3> buf123;
    buf.Append('o');
    if (aBuffer==buf123)
    {
    iConsole.PrintNotify(_L("Yes Its Work") );
    }
    iConsole.PrintNotify(aBuffer);
    }

    I wont!, when the server send response You are connected in my situation leather(o) My client write on display Yes its work.

    But didnt.
    sorry my eanglish not so good.

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

    Re: CSocketsEngine::ResponseReceived

    So can you sent data to the server ?, and how are you implementing the receiving call ?

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    16

    Re: CSocketsEngine::ResponseReceived

    Thx you for answer, I already have solution
    хехе 2 дня усилиних поисков ! и вот оно !
    Compare Rulezzz

    Kod .

    void CSocketsEngine::ResponseReceived( const TDesC8& aBuffer )
    {
    int a;
    TBufC8<2>str;
    str=(_L8("o"));
    iConsole.PrintNotify(aBuffer);


    a=aBuffer.Compare(str);


    if ( a==2)
    {
    iConsole.PrintNotify(_L("3") );
    }
    Offtopic! THXXXXXXXXXXXXXXXXXXXXXXXXXx

Posting Permissions

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