| java.lang.Object client.ServerConnection
connected | public boolean connected(Code) | | |
finalized | public boolean finalized(Code) | | |
_writeObject | public void _writeObject(Object obj)(Code) | | Method to write an object to the server
Parameters: sd - A SocketData object to be sent |
adminAdd | public void adminAdd(String username)(Code) | | adds an admin to the server. If the name of the user
is yours, set interal admin status
Parameters: username - the name of the user made an admin |
channel | public void channel(boolean nc, String n, String p)(Code) | | handles a change in channels
Parameters: nc - true if a new channel, false when you havesuccesfully changed channels so clear all userlists and add yourself; should be recievinga list of any connected users in this channelshortly Parameters: n - the name of the channel Parameters: p - should be null, not used here |
chat | public void chat(String username, String message)(Code) | | recieves a chat message
Parameters: username - the user sending the chat Parameters: message - the message |
chatLog | public void chatLog(boolean start)(Code) | | receives notification in change in logging status
Parameters: start - true when starting logging, false otherwise |
close | public void close()(Code) | | closes the connection to the server
|
error | public void error(String s)(Code) | | receives an error from the server
Parameters: s - the error |
kick | public void kick(String un)(Code) | | recieves kick notification
Parameters: un - should be null, so not used |
private_msg | public void private_msg(String username, String message)(Code) | | recieves a private message
Parameters: username - the user sending the message Parameters: message - the message |
rename | public void rename(String on, String nn)(Code) | | renames a user, if the name of the user is yours,
rename yourself first.
Parameters: on - the old name of the user Parameters: nn - the new name of the user |
run | public void run()(Code) | | Method to implement runnable first reports its username
to the server in the form of an SD_UserAdd and 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) | | adds a user to the server
Parameters: username - the name of the user to be added |
userDel | public void userDel(String username)(Code) | | removes a user from the server
Parameters: username - the name of the user to be removed |
whisper | public void whisper(String username, String message)(Code) | | recieves a whisper
Parameters: username - the user sending the whisper Parameters: message - the message being sent |
writeObject | public void writeObject(Object obj)(Code) | | Method to write an object to the server
Parameters: sd - A SocketData object to be sent |
|
|