Lines Matching refs:address
77 /* Has the channel been bound to the wildcard address */
124 public SctpServerChannel bindAddress(InetAddress address)
126 return bindUnbindAddress(address, true);
130 public SctpServerChannel unbindAddress(InetAddress address)
132 return bindUnbindAddress(address, false);
135 private SctpServerChannel bindUnbindAddress(InetAddress address, boolean add)
137 if (address == null)
148 "Cannot add or remove addresses from a channel that is bound to the wildcard address");
149 if (address.isAnyLocalAddress())
151 "Cannot add or remove the wildcard address");
154 if (addr.getAddress().equals(address)) {
159 /* Verify that there is more than one address
160 * and that address is already bound */
162 throw new IllegalUnbindException("Cannot remove address from a channel with only one address bound");
165 if (addr.getAddress().equals(address)) {
171 throw new IllegalUnbindException("Cannot remove address from a channel that is not bound to that address");
174 SctpNet.bindx(fdVal, new InetAddress[]{address}, port, add);
178 localAddresses.add(new InetSocketAddress(address, port));
181 if (addr.getAddress().equals(address)) {