org.apache.mina.example.tennis
Class Main
java.lang.Object
org.apache.mina.example.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.
- Author:
- Apache MINA Project
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-2011 Apache MINA Project. All Rights Reserved.