org.apache.mina.examples.tennis
Class Main
java.lang.Object
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.
- Client connects to server
- At first, client sends
TennisBall
with TTL value '10'.
- Received side (either server or client) decreases the TTL value of the
received ball, and returns it to remote peer.
- 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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main
public Main()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2004-2005 . All Rights Reserved.