KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xsocket > stream > io > spi > IAcceptorCallback


1 // $Id: IMutlithreadedServerListener.java 1280 2007-05-28 17:59:08Z grro $
2
/*
3  * Copyright (c) xsocket.org, 2006 - 2007. All rights reserved.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Please refer to the LGPL license at: http://www.gnu.org/copyleft/lesser.txt
20  * The latest copy of this software may be found on http://www.xsocket.org/
21  */

22 package org.xsocket.stream.io.spi;
23
24 import java.io.IOException JavaDoc;
25
26
27
28 /**
29  * Server IO Provider callback <br><br>
30  *
31  * <b>This class is experimental and is subject to change</b>
32  *
33  * @author grro@xsocket.org
34  */

35 public interface IAcceptorCallback {
36
37     /**
38      * notifies that the acceptor has been bound to the socket, and
39      * accepts incoming connections
40      *
41      */

42     public void onConnected();
43     
44     
45     /**
46      * notifies that the acceptor has been unbound
47      *
48      */

49     public void onDisconnected();
50     
51     
52     /**
53      * notifies a new incoming connection
54      *
55      * @param ioHandler the assigned io handler of the new connetion
56      * @throws IOException If some other I/O error occurs
57      */

58     public void onConnectionAccepted(IIoHandler ioHandler) throws IOException JavaDoc;
59 }
60
Popular Tags