Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2009

    iStatus in UDP always is KErrNone

    I wrote simple methot that send data by UDP

    void CUDPHandler::SendData()
        RSocketServ socketServ;
        TInt err;
        err = socketServ.Connect();
        // Open a socket    
        RSocket socket;
        User::LeaveIfError(socket.Open (socketServ,KAfInet,KSockDatagram,KProtocolInetUdp));
    When I check iStatus in RunL() methot is always return KErrNone. No mather what ip I set always I havent any errors. How can I check is data send? When I don`t use ActiveObject, (normal method and User::AfterHighRes(10000)) TRequestStatus is KErrNone only if Ip is correct.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: iStatus in UDP always is KErrNone

    Invoking asynchronous request on a local variable (in fact: on two local variables, since the RSocketServ also matters), then leaking it in the next line obviously can not work. Move the RXy-s to member variables.

Similar Threads

  1. Volume buttons on Symbian 3rd devices
    By viktor_m in forum Symbian
    Replies: 47
    Last Post: 2011-06-07, 08:32
  2. UDP Networking problem. Please help!
    By slickire in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2009-06-28, 11:28
  3. Regarding UDp connection
    By symbiannil in forum Symbian
    Replies: 3
    Last Post: 2008-01-21, 11:05
  4. Fragmented Udp Packets - Experts Help!!!
    By stenlik in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-07-22, 14:02

Posting Permissions

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