Package kilim.examples
Class Ping.Client
- java.lang.Object
-
- kilim.examples.Ping.Client
-
- Enclosing class:
- Ping
public static class Ping.Client extends java.lang.ObjectThe 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 voidreadPkt(java.nio.channels.SocketChannel ch, java.nio.ByteBuffer bb)static voidrun()private static voidwritePkt(java.nio.channels.SocketChannel ch, java.nio.ByteBuffer bb)
-
-
-
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.IOExceptionjava.io.EOFException
-
writePkt
private static void writePkt(java.nio.channels.SocketChannel ch, java.nio.ByteBuffer bb) throws java.io.IOException- Throws:
java.io.IOException
-
-