Package one.nio.rpc

Class RpcPacket


  • class RpcPacket
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RpcPacket()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void checkReadSize​(int size, Socket socket)  
      (package private) static void checkWriteSize​(int size)  
      (package private) static int getSize​(byte[] buffer)  
      (package private) static boolean isHttpHeader​(int header)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RpcPacket

        RpcPacket()
    • Method Detail

      • isHttpHeader

        static boolean isHttpHeader​(int header)
      • getSize

        static int getSize​(byte[] buffer)
      • checkWriteSize

        static void checkWriteSize​(int size)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • checkReadSize

        static void checkReadSize​(int size,
                                  Socket socket)
                           throws java.io.IOException
        Throws:
        java.io.IOException