org.apache.mina.examples.tennis
Class Main

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

public class Main
extends 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: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)

Constructor Summary
Main()
           
 
Method Summary
static void main(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(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2004-2005 . All Rights Reserved.