Java Code Examples for com.sun.nio.sctp.SctpChannel#getAllLocalAddresses()
The following examples show how to use
com.sun.nio.sctp.SctpChannel#getAllLocalAddresses() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Util.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 2
Source File: Util.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 3
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 4
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 5
Source File: Util.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 6
Source File: Util.java From hottub with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 7
Source File: Util.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 8
Source File: Util.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 9
Source File: Bind.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
boolean boundAddress(SctpChannel channel, InetAddress addr) throws IOException { for (SocketAddress boundAddr : channel.getAllLocalAddresses()) { if (((InetSocketAddress) boundAddr).getAddress().equals(addr)) return true; } return false; }
Example 10
Source File: Util.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 11
Source File: Bind.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
boolean boundAddress(SctpChannel channel, InetAddress addr) throws IOException { for (SocketAddress boundAddr : channel.getAllLocalAddresses()) { if (((InetSocketAddress) boundAddr).getAddress().equals(addr)) return true; } return false; }
Example 12
Source File: Bind.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
boolean boundAddress(SctpChannel channel, InetAddress addr) throws IOException { for (SocketAddress boundAddr : channel.getAllLocalAddresses()) { if (((InetSocketAddress) boundAddr).getAddress().equals(addr)) return true; } return false; }
Example 13
Source File: Util.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 14
Source File: Util.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 15
Source File: Bind.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
boolean boundAddress(SctpChannel channel, InetAddress addr) throws IOException { for (SocketAddress boundAddr : channel.getAllLocalAddresses()) { if (((InetSocketAddress) boundAddr).getAddress().equals(addr)) return true; } return false; }
Example 16
Source File: Util.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 17
Source File: Bind.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
boolean boundAddress(SctpChannel channel, InetAddress addr) throws IOException { for (SocketAddress boundAddr : channel.getAllLocalAddresses()) { if (((InetSocketAddress) boundAddr).getAddress().equals(addr)) return true; } return false; }
Example 18
Source File: Util.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 19
Source File: Util.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }
Example 20
Source File: Util.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
static void dumpAddresses(SctpChannel channel, PrintStream printStream) throws IOException { Set<SocketAddress> addrs = channel.getAllLocalAddresses(); printStream.println("Local Addresses: "); for (Iterator<SocketAddress> it = addrs.iterator(); it.hasNext(); ) { InetSocketAddress addr = (InetSocketAddress)it.next(); printStream.println("\t" + addr); } }