public static void bind(final ServerSocketChannel ch, InetAddress bind_addr, int start_port, int end_port) throws Exception { bind(ch, bind_addr, start_port, end_port, 50); }
public static void bind(final ServerSocketChannel ch, InetAddress bind_addr, int start_port, int end_port) throws Exception { bind(ch, bind_addr, start_port, end_port, 50); }
public static void bind(ServerSocket srv_sock, InetAddress bind_addr, int start_port, int end_port) throws Exception { bind(srv_sock, bind_addr, start_port, end_port, 50); }
public static void bind(ServerSocket srv_sock, InetAddress bind_addr, int start_port, int end_port) throws Exception { bind(srv_sock, bind_addr, start_port, end_port, 50); }
public static void bind(final ServerSocketChannel ch, InetAddress bind_addr, int start_port, int end_port) throws Exception { bind(ch, bind_addr, start_port, end_port, 50); }
public static void bind(ServerSocket srv_sock, InetAddress bind_addr, int start_port, int end_port) throws Exception { bind(srv_sock, bind_addr, start_port, end_port, 50); }
public static ServerSocketChannel createServerSocketChannelAndBind(InetAddress bind_addr, int start_port, int end_port) throws Exception { ServerSocketChannel channel=ServerSocketChannel.open(); bind(channel, bind_addr, start_port, end_port); return channel; }
public static ServerSocketChannel createServerSocketChannelAndBind(InetAddress bind_addr, int start_port, int end_port) throws Exception { ServerSocketChannel channel=ServerSocketChannel.open(); bind(channel, bind_addr, start_port, end_port); return channel; }
public static ServerSocketChannel createServerSocketChannelAndBind(InetAddress bind_addr, int start_port, int end_port) throws Exception { ServerSocketChannel channel=ServerSocketChannel.open(); bind(channel, bind_addr, start_port, end_port); return channel; }
/** * Finds first available port starting at start_port and returns server * socket. Will not bind to port >end_port. Sets srv_port */ public static ServerSocket createServerSocketAndBind(SocketFactory factory,String service_name,InetAddress bind_addr, int start_port,int end_port) throws Exception { ServerSocket ret=factory.createServerSocket(service_name); bind(ret, bind_addr, start_port, end_port); return ret; }
/** * Finds first available port starting at start_port and returns server * socket. Will not bind to port >end_port. Sets srv_port */ public static ServerSocket createServerSocketAndBind(SocketFactory factory,String service_name,InetAddress bind_addr, int start_port,int end_port) throws Exception { ServerSocket ret=factory.createServerSocket(service_name); bind(ret, bind_addr, start_port, end_port); return ret; }
/** * Finds first available port starting at start_port and returns server * socket. Will not bind to port >end_port. Sets srv_port */ public static ServerSocket createServerSocketAndBind(SocketFactory factory,String service_name,InetAddress bind_addr, int start_port,int end_port) throws Exception { ServerSocket ret=factory.createServerSocket(service_name); bind(ret, bind_addr, start_port, end_port); return ret; }