public class ImageServer {
public static final int PORT = 33789;
public static void main(String[] args) throws IOException {
// Create a class that handles sessions, incoming and outgoing data
ImageServerIoHandler handler = new ImageServerIoHandler();
// This socket acceptor will handle incoming connections
NioSocketAcceptor acceptor = new NioSocketAcceptor();
// add an IoFilter . This class is responsible for converting the incoming and