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

Method connect

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

Source from the content-addressed store, hash-verified

58 }
59
60 public boolean connect(SocketAddress address) throws IOException {
61 InetSocketAddress a;
62 try {
63 a = (InetSocketAddress) address;
64 } catch (ClassCastException e) {
65 throw new UnsupportedAddressTypeException();
66 }
67 doConnect(socket, a.getAddress().getRawAddress(), a.getPort());
68 configureBlocking(blocking);
69 return connected;
70 }
71
72 public boolean finishConnect() throws IOException {
73 if (! connected) {

Callers 1

testFailedBindMethod · 0.95

Calls 5

doConnectMethod · 0.95
getAddressMethod · 0.95
getPortMethod · 0.95
configureBlockingMethod · 0.95
getRawAddressMethod · 0.80

Tested by 1

testFailedBindMethod · 0.76