jenniferpan website
|
Home
|
|
About Me
|
|
Résumé
|
|
Projects/Misc.
|
|
Useful Links
|
|
Email Me
|
|
Guest Book v1.0a
|
|
|
|
Chat Program
ChatClient
This chat client program will support multiple users giving them the ability
to block messages from selected users as well as keep track of selected users (for
ease of communication). Users are also given the ability to send private messages.
One particularly neat function in the user interface (UI) is that the input
area allows the user to input multi-lined text and have it show up in the upper
textbox as such. This is to mimic what users are most likely accustomed to (MSN
Messenger, AIM, etc.). There are also keyboard shortcuts to expediate some functions
(ALT+S=send, ALT+B=block, etc.). Beyond that, it is perhaps good to know
beforehand that your screen name cannot exceed 64 characters.
ChatServer
Changed it so that it'll only send the "ON" after connection to those who
are already connected as the connecting person doesn't need to know they are
connected twice.
There doesn't need to be separate procedure to sendback as it's
doing essentially the same thing as sendone(). So, I took out that
function. And so that private messages get sent to originator and
intended recipient, the arguments passed into sendone is: String message,
String fromUser, String toUser. If toUser is "null", then it's not
in the hashtable and everything is fine.
Also...the disconnect sendback message is now prefaced with a "Q" instead of
"OFF" to denote "quit". And the command delimiters have been changed to non-printable
ASCII characters.
12/9/2001. 17:32 "MU" message now sent
to correct user. For some reason, when I took out the sendback() function
I didn't change the sendone() procedure to do it correctly. All better
now.
12/11/2001. 22:58 Server can now delete users
that "accidentally" get disconnected so that other clients are aware of
the change.
PowerPoint Presentation Draft
Sketch of possible presentation to use for project presentation to
class. Slides still need to be filled in a bit.
|