| Lab | Assigned | Design Due (In class) 10 AM |
Implement (In Lab) Wednesday |
Demo (In Lab) Wednesday |
Lab Due (In lab) Wednesday |
|||||
|---|---|---|---|---|---|---|---|---|---|---|
| 25 | Mar | 26 | Mar | 2 | Apr | 2 | Apr | |||
You continue in this lab with the team you have formed from Lab 5a.
toc).
TOC serverBe sure to open a socket to
new Socket("toc.oscar.aol.com", 9898)
The following is the minimum you need to do to sign onto the
TOC server.
| Client sends | Server sends |
|---|---|
| FLAPON\r\n\r\n | |
| Signon Frame (partial) | |
| Signon Frame (complete) | |
| Data Frame with toc_signon | |
| SIGN_ON | |
| CONFIG | |
| toc_add_buddy somebuddy | |
| toc_init_done |
CONFIG message that tells you the groups
and buddies in buddy list.
You could wait until
you get the CONFIG message to do any
toc_add_buddy commands, and then you could add the buddies
you want to watch. Just make sure you add some buddy and do
toc_init_done within 30 seconds of signing on.
You could use the Visitor pattern to process the CONFIG
message. A list of Visitors could process every incoming message,
and the CONFIG Visitor would be looking just for that message
and take appropriate action.
toc_sigon messageTOC commands, you place the command in
a DataFrame and send it to the server.
According to the specification,
the format of a toc_signon command is as follows:
toc_signon authorizer-host authorizer-port User-Name Password language versionThe components of the command are separated by a space.
authorizer-host
login.oscar.aol.com
authorizer-port
5959
User-Name
Password
Tic/Toc as described in the
specification. Your team should write
a staticmethod to produce the encrypted string.
langauge
english
version
toc.oscar.aol.com, port 9898.