[HPADM] Problems with TCP_NODELAY

wilking_at_atlas.de
Date: 12/15/04

  • Next message: Roger Realsen: "[HPADM] [SUMMARY] Finding Client IP"
    Date: Wed, 15 Dec 2004 10:58:20 +0100
    To: <hpux-admin@dutchworks.nl>
    
    

    Hello,
     
    I've problems with TCP_NODELAY. I'm calling the getsockopt/setsockopt
    function as follows:
     
    int enableOption = x // x is set to 0 or 1
    getsockopt(s, IPPROTO_TCP, TCP_NODELAY, &enableOption,
    (int*)sizeof(enableOption))
    setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &enableOption, sizeof
    (enableOption)
     
    After the getsockopt call enableOption has always the value I've set
    before (0 or 1, I've set the value to 2, too). Have anybody an idea,
    where is the problem? The call of TCP_NODELAY is extremly import.
    Without the call the programm need 200 ms for a ping call, but it should
    need max 10 ms for a ping.
     
    Thanks.

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Roger Realsen: "[HPADM] [SUMMARY] Finding Client IP"