org.dianahep.root4j.daemon.xrootd.ProtocolOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of root4j Show documentation
Show all versions of root4j Show documentation
Derived from FreeHEP ROOT IO (http://java.freehep.org/freehep-rootio); modernized and GUI dropped.
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;
}
}
}