32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
TEST(@"+[socket]", (server = [OFSCTPSocket socket]) &&
(client = [OFSCTPSocket socket]))
@try {
TEST(@"-[bindToHost:port:]",
(port = [server bindToHost: @"127.0.0.1" port: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EPROTONOSUPPORT:
[OFStdOut setForegroundColor: [OFColor lime]];
[OFStdOut writeLine:
@"\r[OFSCTPSocket] -[bindToHost:port:]: "
@"SCTP unsupported, skipping tests"];
break;
|
|
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
TEST(@"+[socket]", (server = [OFSCTPSocket socket]) &&
(client = [OFSCTPSocket socket]))
@try {
TEST(@"-[bindToHost:port:]",
(port = [server bindToHost: @"127.0.0.1" port: 0]))
} @catch (OFBindSocketFailedException *e) {
switch (e.errNo) {
case EPROTONOSUPPORT:
[OFStdOut setForegroundColor: [OFColor lime]];
[OFStdOut writeLine:
@"\r[OFSCTPSocket] -[bindToHost:port:]: "
@"SCTP unsupported, skipping tests"];
break;
|