| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuniverse.Universe<java.lang.String>
universe.test.ChatServer
public class ChatServer
Universe ChatServer test. Implements a Simple Server that broadcasts messages (strings) to all connected clients.
| Field Summary | 
|---|
| Fields inherited from class universe.Universe | 
|---|
| DEFAULT_TICK_RATE | 
| Method Summary | |
|---|---|
| static void | main(java.lang.String[] s)Main method. | 
|  Bundle<java.lang.String> | onDisconnect(IWorld w)When a client disconnects, remove the world and send a message | 
|  Scene | onDraw()Nothing to draw | 
|  Bundle<java.lang.String> | onMsg(IWorld w,
      java.lang.String m)When a message arrives, broadcast it to all connected clients | 
|  Bundle<java.lang.String> | onNew(IWorld w)When a new client arrives, add it to the current list | 
| Methods inherited from class universe.Universe | 
|---|
| onTick, tickRate, universe | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void main(java.lang.String[] s)
public Scene onDraw()
onDraw in class Universe<java.lang.String>
public Bundle<java.lang.String> onMsg(IWorld w,
                                      java.lang.String m)
onMsg in class Universe<java.lang.String>public Bundle<java.lang.String> onNew(IWorld w)
onNew in class Universe<java.lang.String>public Bundle<java.lang.String> onDisconnect(IWorld w)
onDisconnect in class Universe<java.lang.String>| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||