|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cscie160.hw4.Server
Constructor Summary | |
Server(int mPort)
| Constructor. |
Method Summary | |
void |
closeServer()
| Ensure Server closed smoothly |
void |
listen()
| Loop while listening to Client. |
static void |
main(java.lang.String[] argv)
| Read args passed to main(), and trigger Server to be opened. |
void |
openServer()
| Ensure server is opened smoothly. |
Cmd |
parseLine(java.lang.String mLine)
| Parse the command lone into the command name and args Commands are sent in the format "methodName(args)" Much like a Java method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Server(int mPort)
int
- Port number this server listens to.Method Detail |
public void openServer()
public void listen()
public Cmd parseLine(java.lang.String mLine)
public void closeServer()
public static void main(java.lang.String[] argv)
argv
- Elevator object stopping at this floor.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |