All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dianahep.root4j.daemon.xrootd.ProtocolOperation Maven / Gradle / Ivy

Go to download

Derived from FreeHEP ROOT IO (http://java.freehep.org/freehep-rootio); modernized and GUI dropped.

There is a newer version: 0.1.6
Show newest version
package org.dianahep.root4j.daemon.xrootd;

import java.io.IOException;


/**
 * Obtain the protocol version number and type of server.
 * @author tonyj
 */
class ProtocolOperation extends Operation {
    ProtocolOperation() {
        super("protocol",new Message(XrootdProtocol.kXR_protocol),new ProtocolCallback());
    }
    private static class ProtocolCallback extends Callback {

        @Override
        String responseReady(Response response) throws IOException
        {
            int pval = response.readInt();
            int flags = response.readInt();
            return pval+" "+flags;
        }
        
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy