Examples of SNTPResponse


Examples of com.sleepycat.je.rep.stream.Protocol.SNTPResponse

            /* Iterate until we have a value that's good enough. */
            isLast = (++sampleCount >= CLOCK_SKEW_MAX_SAMPLE_SIZE) ||
                     (clockDelay <= CLOCK_SKEW_MIN_DELAY_MS);

            protocol.write(protocol.new SNTPRequest(isLast), namedChannel);
            SNTPResponse response = protocol.read(namedChannel,
                                                  SNTPResponse.class);
            if (response.getDelay() < clockDelay) {
                clockDelay = response.getDelay();
                clockDelta = response.getDelta();
            }

        } while (!isLast);

        LoggerUtils.logMsg
View Full Code Here

Examples of com.sleepycat.je.rep.stream.Protocol.SNTPResponse

            /* Iterate until we have a value that's good enough. */
            isLast = (++sampleCount >= CLOCK_SKEW_MAX_SAMPLE_SIZE) ||
                     (clockDelay <= CLOCK_SKEW_MIN_DELAY_MS);

            protocol.write(protocol.new SNTPRequest(isLast), namedChannel);
            SNTPResponse response = protocol.read(namedChannel,
                                                  SNTPResponse.class);
            if (response.getDelay() < clockDelay) {
                clockDelay = response.getDelay();
                clockDelta = response.getDelta();
            }

        } while (!isLast);

        LoggerUtils.logMsg
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.