j8583.example
Class ChannelServer

java.lang.Object
  extended by j8583.example.ChannelServer
All Implemented Interfaces:
Runnable

public class ChannelServer
extends Object
implements Runnable

This example uses java.nio instead of java.io to read and write the messages to the clients.

Author:
Enrique Zamudio

Constructor Summary
ChannelServer(SocketChannel chan, byte[] buf)
           
 
Method Summary
static void main(String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelServer

public ChannelServer(SocketChannel chan,
                     byte[] buf)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception