01: /*- SocketData.java -----------------------------------------------+
02: | |
03: | Copyright (C) 2002-2003 Joseph Monti, LlamaChat |
04: | countjoe@users.sourceforge.net |
05: | http://www.42llamas.com/LlamaChat/ |
06: | |
07: | This program is free software; you can redistribute it and/or |
08: | modify it under the terms of the GNU General Public License |
09: | 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.sd;
24:
25: import common.SocketConnection;
26:
27: /* -------------------- JavaDoc Information ----------------------*/
28: /**
29: * Interface to represent data to be transfered over a socket.
30: * Any data that needs to be sent over the socket must implement this
31: * method and Serializable so it can be serialized and sent over the socket
32: * @author Joseph Monti <a href="mailto:countjoe@users.sourceforge.net">countjoe@users.sourceforge.net</a>
33: * @version 0.8
34: */
35: public interface SocketData {
36: /**
37: * This method is what calls the aproprate functions on
38: * the recieving end of the socket
39: * @param sc The reference to the recieving connection
40: */
41: public void performAction(SocketConnection sc);
42: }
|