Class Ping.Client

  • Enclosing class:
    Ping

    public static class Ping.Client
    extends java.lang.Object
    The Client is a conventional Java socket application.
    • Constructor Summary

      Constructors 
      Constructor Description
      Client()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void readPkt​(java.nio.channels.SocketChannel ch, java.nio.ByteBuffer bb)  
      static void run()  
      private static void writePkt​(java.nio.channels.SocketChannel ch, java.nio.ByteBuffer bb)  
      • Methods inherited from class java.lang.Object

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

      • Client

        public Client()
    • Method Detail

      • run

        public static void run()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readPkt

        private static void readPkt​(java.nio.channels.SocketChannel ch,
                                    java.nio.ByteBuffer bb)
                             throws java.io.IOException,
                                    java.io.EOFException
        Throws:
        java.io.IOException
        java.io.EOFException
      • writePkt

        private static void writePkt​(java.nio.channels.SocketChannel ch,
                                     java.nio.ByteBuffer bb)
                              throws java.io.IOException
        Throws:
        java.io.IOException