1 package org.sapia.ubik.net.mplex; 2 3 import java.io.IOException ; 4 5 import java.net.InetAddress ; 6 import java.net.Socket ; 7 import java.net.SocketAddress ; 8 import java.net.SocketException ; 9 10 11 43 public interface MultiplexSocketConnector { 44 50 public int getLocalPort(); 51 52 58 public InetAddress getInetAddress(); 59 60 67 public SocketAddress getLocalSocketAddress(); 68 69 77 public int getReceiveBufferSize() throws SocketException ; 78 79 85 public boolean getReuseAddress() throws SocketException ; 86 87 94 public int getSoTimeout() throws IOException ; 95 96 101 public boolean isBound(); 102 103 108 public boolean isClosed(); 109 110 117 public Socket accept() throws IOException ; 118 119 124 public void close() throws IOException ; 125 } 126 | Popular Tags |