public ProtocolReplEventRequest waitReplEventRequest() throws ReplicatorException, IOException {
  ProtocolMessage msg=readMessage();
  if (msg instanceof ProtocolReplEventRequest == false)   throw new THLException("Protocol error");
  return (ProtocolReplEventRequest)msg;
}

public ProtocolReplEventRequest waitReplEventRequest ( ) throws ReplicatorException , IOException { ProtocolMessage msg = readMessage ( ) ; if ( msg instanceof ProtocolReplEventRequest == false ) throw new THLException ( "Protocol error" ) ; return ( ProtocolReplEventRequest ) msg ; }
wait for an event request from client .
