| java.lang.Object server.ClientConnection
_writeObject | public void _writeObject(Object obj)(Code) | | Method to actually write an object to the server
Parameters: sd - A SocketData object to be sent |
adminAdd | public void adminAdd(String password)(Code) | | used by a client to attain administrative status
Parameters: password - the password provided by the client |
channel | public void channel(boolean nc, String n, String p)(Code) | | recieves a channel change
Parameters: nc - true for a new channel, if the channel exists an error issent back to the user, otherwise the channel is createdand a recursive call is made to switch the user tothe new channel; if false it checks the validity of therequest and move the user Parameters: n - the name of the channel Parameters: p - password for the channel, if one |
chat | public void chat(String username, String message)(Code) | | recives a chat message from the user
Parameters: username - the name of the user, not used in this case(it should be null) Parameters: message - the messsage sent by the user |
chatLog | public void chatLog(boolean start)(Code) | | used to control the chat logging status
Parameters: start - true to start logging, false to stop |
close | public void close()(Code) | | closes the connection to the client
|
error | public void error(String err)(Code) | | recieves an error from the client
Parameters: err - the error to report |
isAdmin | public boolean isAdmin()(Code) | | utility method to retrieve the admin status
true if admin |
kick | public void kick(String username)(Code) | | used to kick a user; eventually IP banning will be an added
option (called ban), but will use SD_Kick
Parameters: username - the name of the user to kicko |
private_msg | public void private_msg(String username, String message)(Code) | | recives a private message from the user
Parameters: username - the name of the user to whom the message is sent Parameters: message - the messsage sent by the user |
rename | public void rename(String on, String nn)(Code) | | used to rename the client
ADD USERNAME VALIDITY CHECK
Parameters: on - the old name of the client Parameters: nn - the new (requested) name of the client |
run | public void run()(Code) | | Method to implement runnable, listens
for incoming objects
|
serverCap | public void serverCap(char type, Object obj)(Code) | | receives server configurations
Parameters: type - the type of data being sent Parameters: obj - the object being sent |
userAdd | public void userAdd(String username)(Code) | | used to finalize the conneciton to the client.
when a user connects he must send a SD_UserAdd to tell
the server the requested name
Parameters: username - the name of the client |
userDel | public void userDel(String username)(Code) | | Tells the server that the client wishes to disconnect
Parameters: username - the name of the user |
whisper | public void whisper(String username, String message)(Code) | | whispers to a user
Parameters: username - the name of the user that the whisper is to be sent Parameters: message - the message that is to be whispered |
writeObject | public void writeObject(Object obj)(Code) | | Method to write an object to the server via MessageQueue
Parameters: sd - A SocketData object to be sent |
|
|