MCPcopy Create free account
hub / github.com/ReadyTalk/avian / bind

Method bind

classpath/java/nio/channels/SocketChannel.java:177–193  ·  view source on GitHub ↗
(SocketAddress address)

Source from the content-addressed store, hash-verified

175 }
176
177 public void bind(SocketAddress address)
178 throws IOException
179 {
180 InetSocketAddress a;
181 try {
182 a = (InetSocketAddress) address;
183 } catch (ClassCastException e) {
184 throw new IllegalArgumentException();
185 }
186
187 if (a == null) {
188 SocketChannel.bind(socket, 0, 0);
189 } else {
190 SocketChannel.bind
191 (socket, a.getAddress().getRawAddress(), a.getPort());
192 }
193 }
194 }
195
196 private static native int makeSocket();

Callers

nothing calls this directly

Calls 4

bindMethod · 0.95
getAddressMethod · 0.95
getPortMethod · 0.95
getRawAddressMethod · 0.80

Tested by

no test coverage detected