org.apache.mina.examples.tennis
Class Main

java.lang.Object
  extended by org.apache.mina.examples.tennis.Main

public class Main
extends java.lang.Object

(Entry point) An 'in-VM pipe' example which simulates a tennis game between client and server.

  1. Client connects to server
  2. At first, client sends TennisBall with TTL value '10'.
  3. Received side (either server or client) decreases the TTL value of the received ball, and returns it to remote peer.
  4. Who gets the ball with 0 TTL loses.

Version:
$Rev: 355016 $, $Date: 2005-12-08 16:00:30 +0900 (Thu, 08 Dec 2005) $
Author:
The Apache Directory Project (dev@directory.apache.org)

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

Constructor Detail

Main

public Main()
Method Detail

main

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