Class NetAgent


  • public class NetAgent
    extends Agent
    • Method Detail

      • setSvrcod

        void setSvrcod​(int svrcod)
      • clearSvrcod

        void clearSvrcod()
      • getSvrcod

        private int getSvrcod()
      • setTimeout

        protected void setTimeout​(int timeout)
        Specifies the maximum blocking time that should be used when sending and receiving messages. The timeout is implemented by using the the underlying socket implementation's timeout support. Note that the support for timeout on sockets is dependent on the OS implementation. For the same reason we ignore any exceptions thrown by the call to the socket layer.
        Parameters:
        timeout - The timeout value in seconds. A value of 0 corresponds to infinite timeout.
      • getTimeout

        protected int getTimeout()
        Returns the current timeout value that is set on the socket. Note that the support for timeout on sockets is dependent on the OS implementation. For the same reason we ignore any exceptions thrown by the call to the socket layer.
        Returns:
        The timeout value in seconds. A value of 0 corresponds to that no timeout is specified on the socket.
      • getInputStream

        public java.io.InputStream getInputStream()
      • getCurrentCcsidManager

        public CcsidManager getCurrentCcsidManager()
      • getOutputStream

        public java.io.OutputStream getOutputStream()
      • setInputStream

        void setInputStream​(java.io.InputStream inputStream)
      • setOutputStream

        void setOutputStream​(java.io.OutputStream outputStream)
      • markWriteChainAsDirty

        void markWriteChainAsDirty()
        Marks the agent's write chain as dirty. A write chain is dirty when data from it has been sent to the server. A dirty write chain cannot be reset and reused for another request until the remaining data has been sent to the server and the write chain properly ended. Resetting a dirty chain will cause the new request to be appended to the unfinished request already at the server, which will likely lead to cryptic syntax errors.
      • endWriteChain

        protected void endWriteChain()
        Specified by:
        endWriteChain in class Agent
      • switchToUtf8CcsidMgr

        void switchToUtf8CcsidMgr()
        Switches the current CCSID manager to UTF-8
      • switchToEbcdicMgr

        void switchToEbcdicMgr()
        Switches the current CCSID manager to EBCDIC