org.apache.mina.example.gettingstarted.timeserver
Class MinaTimeServer

java.lang.Object
  extended by org.apache.mina.example.gettingstarted.timeserver.MinaTimeServer

public class MinaTimeServer
extends java.lang.Object

A minimal 'time' server, returning the current date. Opening a telnet server, you will get the current date by typing any string followed by a new line. In order to quit, just send the 'quit' message.

Author:
Apache MINA Project

Constructor Summary
MinaTimeServer()
           
 
Method Summary
static void main(java.lang.String[] args)
          The server implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinaTimeServer

public MinaTimeServer()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
The server implementation. It's based on TCP, and uses a logging filter plus a text line decoder.

Throws:
java.io.IOException


Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.