Lines Matching defs:smc

58     <T> void checkOption(SctpMultiChannel smc, SctpSocketOption<T> name,
60 T value = smc.getOption(name, null);
65 <T> void optionalSupport(SctpMultiChannel smc, SctpSocketOption<T> name,
68 smc.setOption(name, value, null);
69 checkOption(smc, name, value);
84 SctpMultiChannel smc = SctpMultiChannel.open();
87 Set<SctpSocketOption<?>> options = smc.supportedOptions();
100 smc.setOption(SCTP_INIT_MAXSTREAMS, streams, null);
101 checkOption(smc, SCTP_INIT_MAXSTREAMS, streams);
102 streams = smc.getOption(SCTP_INIT_MAXSTREAMS, null);
108 optionalSupport(smc, SCTP_DISABLE_FRAGMENTS, true);
109 optionalSupport(smc, SCTP_EXPLICIT_COMPLETE, true);
110 optionalSupport(smc, SCTP_FRAGMENT_INTERLEAVE, 1);
112 smc.setOption(SCTP_NODELAY, true, null);
113 checkOption(smc, SCTP_NODELAY, true);
114 smc.setOption(SO_SNDBUF, 16*1024, null);
115 smc.setOption(SO_RCVBUF, 16*1024, null);
117 checkOption(smc, SO_LINGER, -1); /* default should be negative */
121 smc.setOption(SO_LINGER, 2000, null);
122 checkOption(smc, SO_LINGER, 2000);
130 smc.setOption(null, "value", null);
136 smc.getOption(null, null);
143 smc.close();
145 smc.setOption(SCTP_INIT_MAXSTREAMS, streams, null);
178 SctpMultiChannel smc = SctpMultiChannel.open();
179 int sent = smc.send(buffer, info);
184 info = smc.receive(buffer, null, handler);
186 Set<Association> associations = smc.associations();
205 //smc.setOption(SCTP_PRIMARY_ADDR, addrToSet, assoc);
208 SocketAddress primaryAddr = smc.getOption(SCTP_PRIMARY_ADDR, assoc);
223 smc.setOption(SCTP_PRIMARY_ADDR, addrToSet, assoc);
225 primaryAddr = smc.getOption(SCTP_PRIMARY_ADDR, assoc);