Package org.apache.directory.server.ntp.messages

Examples of org.apache.directory.server.ntp.messages.NtpTimeStamp


        modifier.setPrecision( ( byte ) 0xFA ); // -6
        modifier.setRootDelay( 0 );
        modifier.setRootDispersion( 0 );
        modifier.setReferenceIdentifier( ReferenceIdentifier.LOCL );

        NtpTimeStamp now = new NtpTimeStamp();

        modifier.setReferenceTimestamp( now );
        modifier.setOriginateTimestamp( now );
        modifier.setReceiveTimestamp( now );
        modifier.setTransmitTimestamp( now );
View Full Code Here


        modifier.setPollInterval( parsePollInterval( request ) );
        modifier.setPrecision( parsePrecision( request ) );
        modifier.setRootDelay( parseRootDelay( request ) );
        modifier.setRootDispersion( parseRootDispersion( request ) );
        modifier.setReferenceIdentifier( parseReferenceIdentifier( request ) );
        modifier.setReferenceTimestamp( new NtpTimeStamp( request ) );
        modifier.setOriginateTimestamp( new NtpTimeStamp( request ) );

        byte[] unneededBytes = new byte[8];
        request.get( unneededBytes );

        modifier.setReceiveTimestamp( new NtpTimeStamp() );
        modifier.setTransmitTimestamp( new NtpTimeStamp( request ) );

        return modifier.getNtpMessage();
    }
View Full Code Here

        modifier.setPrecision( ( byte ) 0xFA );
        modifier.setRootDelay( 0 );
        modifier.setRootDispersion( 0 );
        modifier.setReferenceIdentifier( ReferenceIdentifier.LOCL );

        NtpTimeStamp now = new NtpTimeStamp();

        modifier.setReferenceTimestamp( now );
        modifier.setOriginateTimestamp( request.getTransmitTimestamp() );
        modifier.setReceiveTimestamp( request.getReceiveTimestamp() );
        modifier.setTransmitTimestamp( now );
View Full Code Here

        modifier.setPrecision( ( byte ) 0xFA ); // -6
        modifier.setRootDelay( 0 );
        modifier.setRootDispersion( 0 );
        modifier.setReferenceIdentifier( ReferenceIdentifier.LOCL );

        NtpTimeStamp now = new NtpTimeStamp();

        modifier.setReferenceTimestamp( now );
        modifier.setOriginateTimestamp( now );
        modifier.setReceiveTimestamp( now );
        modifier.setTransmitTimestamp( now );
View Full Code Here

        modifier.setPrecision( ( byte ) 0xFA );
        modifier.setRootDelay( 0 );
        modifier.setRootDispersion( 0 );
        modifier.setReferenceIdentifier( ReferenceIdentifier.LOCL );

        NtpTimeStamp now = new NtpTimeStamp();

        modifier.setReferenceTimestamp( now );
        modifier.setOriginateTimestamp( request.getTransmitTimestamp() );
        modifier.setReceiveTimestamp( request.getReceiveTimestamp() );
        modifier.setTransmitTimestamp( now );
View Full Code Here

        modifier.setPollInterval( parsePollInterval( request ) );
        modifier.setPrecision( parsePrecision( request ) );
        modifier.setRootDelay( parseRootDelay( request ) );
        modifier.setRootDispersion( parseRootDispersion( request ) );
        modifier.setReferenceIdentifier( parseReferenceIdentifier( request ) );
        modifier.setReferenceTimestamp( new NtpTimeStamp( request ) );
        modifier.setOriginateTimestamp( new NtpTimeStamp( request ) );

        byte[] unneededBytes = new byte[8];
        request.get( unneededBytes );

        modifier.setReceiveTimestamp( new NtpTimeStamp() );
        modifier.setTransmitTimestamp( new NtpTimeStamp( request ) );

        return modifier.getNtpMessage();
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.ntp.messages.NtpTimeStamp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.