KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > common > SocketConnection


1 /*- SocketConnection.java -----------------------------------------+
2  | |
3  | Copyright (C) 2002-2003 Joseph Monti, LlamaChat |
4  | countjoe@users.sourceforge.net |
5  | http://www.42llamas.com/LlamaChat/ |
6  | |
7  | This program is free software; you can redistribute it and/or |
8  | modify it under the terms of the GNU General Public License |
9  | as published by the Free Software Foundation; either version 2 |
10  | of the License, or (at your option) any later version |
11  | |
12  | This program is distributed in the hope that it will be useful, |
13  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15  | GNU General Public License for more details. |
16  | |
17  | A copy of the GNU General Public License may be found in the |
18  | installation directory named "GNUGPL.txt" |
19  | |
20  +-----------------------------------------------------------------+
21  */

22
23 package common;
24
25 /* -------------------- JavaDoc Information ----------------------*/
26 /**
27  * The inteface to connection classes.
28  * @author Joseph Monti <a HREF="mailto:countjoe@users.sourceforge.net">countjoe@users.sourceforge.net</a>
29  * @version 0.8
30  * @see common.sd.SocketData
31  */

32 public interface SocketConnection {
33     public void userAdd(String JavaDoc username);
34     public void adminAdd(String JavaDoc text);
35     public void userDel(String JavaDoc username);
36     public void rename(String JavaDoc on, String JavaDoc nn);
37     public void kick(String JavaDoc username);
38     public void channel(boolean new_channel, String JavaDoc name, String JavaDoc pass);
39     public void chat(String JavaDoc username, String JavaDoc message);
40     public void private_msg(String JavaDoc username, String JavaDoc message);
41     public void whisper(String JavaDoc username, String JavaDoc message);
42     public void chatLog(boolean start);
43     public void error(String JavaDoc s);
44     public void _writeObject(Object JavaDoc obj);
45     public void serverCap(char type, Object JavaDoc obj);
46     public void close();
47 }
48
Popular Tags