KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Id: IoHandlerBase.java 1315 2007-06-10 08:05:00Z 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 import java.net.InetSocketAddress JavaDoc;
26 import java.util.Map JavaDoc;
27
28 import org.xsocket.stream.IConnection;
29
30
31
32 /**
33  * Client IO Provider, which is responsible to create and manage client-side {@link IIoHandler} <br><br>
34  *
35  * <b>This class is experimental and is subject to change</b>
36  *
37  *
38  * @author grro@xsocket.org
39  */

40 public interface IClientIoProvider extends IHandlerIoProvider {
41         
42     public static final String JavaDoc PROVIDER_CLASSNAME_KEY = "org.xsocket.stream.io.spi.ClientIoProviderClass";
43
44     
45     public static final String JavaDoc SO_SNDBUF = IConnection.SO_SNDBUF;
46     public static final String JavaDoc SO_RCVBUF = IConnection.SO_RCVBUF;
47     public static final String JavaDoc SO_REUSEADDR = IConnection.SO_REUSEADDR;
48     public static final String JavaDoc SO_KEEPALIVE = IConnection.SO_KEEPALIVE;
49     public static final String JavaDoc SO_LINGER = IConnection.SO_LINGER;
50     public static final String JavaDoc TCP_NODELAY = IConnection.TCP_NODELAY;
51
52     
53     /**
54      * creates a client-site {@link IIoHandler}
55      *
56      * @param ctx the handler context
57      * @param remoteAddress the remote address
58      * @param options the socket options
59      * @return the new IoHandler-instance
60      * @throws IOException If some other I/O error occurs
61      */

62     public IIoHandler createClientIoHandler(IIoHandlerContext ctx, InetSocketAddress JavaDoc remoteAddress, Map JavaDoc<String JavaDoc ,Object JavaDoc> options) throws IOException JavaDoc;
63 }
64
Popular Tags