×

Discussion Board

Results 1 to 3 of 3

Thread: Socket TTL

  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    139

    Socket TTL

    I am trying to change the ttl value in UDP packet by using KSoIpTTL option before sending the packet. However, it appears to be not working for multicast destination (works for unicast though). When I observe using sniffer, the packet has TTL value of 1. Any clue? SetOpt returns KErrNone and packet is also sent successfuly. Problem is only with TTL value.


    iSocket.Open(iSocketSrv,KAfInet, KSockDatagram, KProtocolInetUdp,iConnection);
    ...
    ...
    ...
    res = iSocket.SetOpt( KSoIpTTL, KSolInetIp, 5 );

    iSocket.SendTo(getBuff, toAddr, 0, iStatus);

    Documentation for KSoIpTTL seems to be incomplete. It mentions incomplete senstense:

    "Note: For the TTL of multicast destinations, "

    I tried with KSoIp6MulticastHops but it fails.

    Pls help
    Last edited by gammav; 2008-05-22 at 17:39.

  2. #2
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: Socket TTL

    Hi,

    No the documentation is precise, sometime back we tested the multicast ttl on emulator , it crashes for the system not able to handle it and the same works fine when tested on device. try on target it must work..

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    104

    Re: Socket TTL

    I am not very sure about the problem. But I would like to share a small thought.

    The significance of TTL value is different for broadcast and multicast networks. The TTL value 1 looks like a valid value as the packet is restricted for same subnet. Its just a theory, i havent experimented it.

    http://celluleus.blogspot.com/2008/0...e-to-live.html

    you can check this link to know the significance of TTL value in multicast

Similar Threads

  1. TCP server packet receiving problem
    By raj_rr7 in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2007-07-12, 12:24
  2. SOCKET PROGRAMMING: Client can not connect to server...
    By simbiyan in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2007-04-22, 20:00
  3. problem in persistant socket connection
    By poms4symbian in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-03, 13:23
  4. Socket problem
    By defragger in forum Symbian
    Replies: 0
    Last Post: 2005-08-25, 08:16

Posting Permissions

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