Lines Matching refs:channel
63 SctpChannel channel = null;
67 /* Create a server channel to connect to */
74 channel = SctpChannel.open();
76 /* TEST 0.5 Verify default values for new/unconnected channel */
77 check(channel.getRemoteAddresses().isEmpty(),
78 "non empty set for unconnected channel");
79 check(channel.association() == null,
80 "non-null association for unconnected channel");
81 check(!channel.isConnectionPending(),
85 channel.configureBlocking(false);
86 if (channel.connect(peerAddress) != true) {
88 check(channel.isConnectionPending(),
91 channel.connect(peerAddress);
98 channel.configureBlocking(true);
99 check(channel.finishConnect(),
107 check(!channel.getRemoteAddresses().isEmpty(),
108 "empty set for connected channel");
109 check(channel.association() != null,
110 "null association for connected channel");
111 check(!channel.isConnectionPending(),
112 "pending connection for connected channel");
116 channel.connect(peerAddress);
126 channel.connect(peerAddress, 5, 5);
135 channel.close();
136 channel = SctpChannel.open();
140 channel.connect(unresolved);
151 channel.connect(unsupported);
160 channel.close();
161 final SctpChannel closedChannel = channel;
173 check(!channel.isConnectionPending(),
174 "pending connection for closed channel");
179 channel = SctpChannel.open();
181 channel.finishConnect();
190 channel.close();
191 final SctpChannel cceChannel = channel;
199 channel = SctpChannel.open();
201 channel.connect(addr);
210 try { if (channel != null) channel.close(); }