/** * Flush buffer to outputstream * * * @exception IOException */ protected void flush () throws java.io.IOException { flush(agent.getOutputStream()); }
/** * Flush buffer to outputstream * * * @exception IOException */ protected void flush () throws java.io.IOException { flush(agent.getOutputStream()); }
/** * Flush buffer to outputstream * * * @exception IOException */ protected void flush () throws java.io.IOException { flush(agent.getOutputStream()); }
/** * Send OK from server to client after processing a command * * @param writer writer to use for sending OK * * @throws Exception if a problem occurs sending OK */ private void sendOK(DDMWriter writer) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(OK); writer.flush(); } /**
/** * Send OK from server to client after processing a command * * @param writer writer to use for sending OK * * @throws Exception if a problem occurs sending OK */ private void sendOK(DDMWriter writer) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(OK); writer.flush(); } /**
/** * Send OK from server to client after processing a command * * @param writer writer to use for sending OK * * @throws Exception if a problem occurs sending OK */ private void sendOK(DDMWriter writer) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(OK); writer.flush(); } /**
/** * Send OK and int value * * @param writer writer to use for sending * @param val int val to send * * @throws Exception if a problem occurs */ private void sendOKInt(DDMWriter writer, int val) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(OK); writer.writeNetworkInt(val); writer.flush(); } /**
/** * Send OK and int value * * @param writer writer to use for sending * @param val int val to send * * @throws Exception if a problem occurs */ private void sendOKInt(DDMWriter writer, int val) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(OK); writer.writeNetworkInt(val); writer.flush(); } /**
/** * Send OK and int value * * @param writer writer to use for sending * @param val int val to send * * @throws Exception if a problem occurs */ private void sendOKInt(DDMWriter writer, int val) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(OK); writer.writeNetworkInt(val); writer.flush(); } /**
/** * Send Error or Warning from server to client after processing a command * * @param writer writer to use for sending message * @param messageType 1 for Warning, 2 for Error 3 for SQLError * @param message message * * @throws Exception if a problem occurs sending message */ private void sendMessage(DDMWriter writer, int messageType, String message) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(messageType); writer.writeLDString(message); writer.flush(); } /**
/** * Send Error or Warning from server to client after processing a command * * @param writer writer to use for sending message * @param messageType 1 for Warning, 2 for Error 3 for SQLError * @param message message * * @throws Exception if a problem occurs sending message */ private void sendMessage(DDMWriter writer, int messageType, String message) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(messageType); writer.writeLDString(message); writer.flush(); } /**
/** * Send Error or Warning from server to client after processing a command * * @param writer writer to use for sending message * @param messageType 1 for Warning, 2 for Error 3 for SQLError * @param message message * * @throws Exception if a problem occurs sending message */ private void sendMessage(DDMWriter writer, int messageType, String message) throws Exception { writeCommandReplyHeader(writer); writer.writeByte(messageType); writer.writeLDString(message); writer.flush(); } /**
/** * Send SysInfo information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendSysInfo(DDMWriter writer) throws Exception { StringBuilder sysinfo = new StringBuilder(); sysinfo.append(getNetSysInfo()); sysinfo.append(getCLSSysInfo()); try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDString(sysinfo.toString()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_SysInfoWriteError.S", e.getMessage()); } writer.flush(); }
/** * Send SysInfo information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendSysInfo(DDMWriter writer) throws Exception { StringBuilder sysinfo = new StringBuilder(); sysinfo.append(getNetSysInfo()); sysinfo.append(getCLSSysInfo()); try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDString(sysinfo.toString()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_SysInfoWriteError.S", e.getMessage()); } writer.flush(); }
/** * Send SysInfo information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendSysInfo(DDMWriter writer) throws Exception { StringBuilder sysinfo = new StringBuilder(); sysinfo.append(getNetSysInfo()); sysinfo.append(getCLSSysInfo()); try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDString(sysinfo.toString()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_SysInfoWriteError.S", e.getMessage()); } writer.flush(); }
/** * Send property information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendPropInfo(DDMWriter writer) throws Exception { try { ByteArrayOutputStream out = new ByteArrayOutputStream(); Properties p = getPropertyValues(); p.store(out, "NetworkServerControl properties"); try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDBytes(out.toByteArray()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_PropInfoWriteError.S", e.getMessage()); } writer.flush(); } catch (Exception e) { consoleExceptionPrintTrace(e); } }
/** * Send property information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendPropInfo(DDMWriter writer) throws Exception { try { ByteArrayOutputStream out = new ByteArrayOutputStream(); Properties p = getPropertyValues(); p.store(out, "NetworkServerControl properties"); try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDBytes(out.toByteArray()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_PropInfoWriteError.S", e.getMessage()); } writer.flush(); } catch (Exception e) { consoleExceptionPrintTrace(e); } }
/** * Send RuntimeInfo information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendRuntimeInfo(DDMWriter writer) throws Exception { try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDString(getRuntimeInfo()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_SysInfoWriteError.S", e.getMessage()); } writer.flush(); }
/** * Send RuntimeInfo information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendRuntimeInfo(DDMWriter writer) throws Exception { try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDString(getRuntimeInfo()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_SysInfoWriteError.S", e.getMessage()); } writer.flush(); }
/** * Send RuntimeInfo information from server to client * * @param writer writer to use for sending sysinfo * * @throws Exception if a problem occurs sending value */ private void sendRuntimeInfo(DDMWriter writer) throws Exception { try { writeCommandReplyHeader(writer); writer.writeByte(0); //O.K. writer.writeLDString(getRuntimeInfo()); } catch (DRDAProtocolException e) { consolePropertyMessage("DRDA_SysInfoWriteError.S", e.getMessage()); } writer.flush(); }