1 22 package org.xsocket.stream.io.spi; 23 24 import java.io.Closeable ; 25 import java.io.IOException ; 26 import java.net.InetSocketAddress ; 27 import java.util.Map ; 28 29 import org.xsocket.stream.IMultithreadedServer; 30 31 32 33 40 public interface IAcceptor extends Closeable { 41 42 public static final String ACCEPTOR_CLASSNAME_KEY = "org.xsocket.stream.spi.AcceptorClassname"; 43 44 public static final String SO_RCVBUF = IMultithreadedServer.SO_RCVBUF; 45 public static final String SO_REUSEADDR = IMultithreadedServer.SO_REUSEADDR; 46 47 48 55 public Object getOption(String name) throws IOException ; 56 57 58 59 67 public Map <String ,Class > getOptions(); 68 69 70 71 76 public void listen() throws IOException ; 77 78 79 83 public int getNumberOfOpenConnections(); 84 85 86 91 public InetSocketAddress getLocalAddress(); 92 } 93 | Popular Tags |