64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
if (!strcmp(buf, "Hallo!"))
puts("Received correct string!");
else {
puts("Received INCORRECT string!");
return 1;
}
memset(buf, 0, 7);
[accepted free];
[client close];
[server close];
puts("== IPv6 ==");
|
>
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
if (!strcmp(buf, "Hallo!"))
puts("Received correct string!");
else {
puts("Received INCORRECT string!");
return 1;
}
#ifdef HAVE_IPV6
memset(buf, 0, 7);
[accepted free];
[client close];
[server close];
puts("== IPv6 ==");
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
if (!strcmp(buf, "IPv6:)"))
puts("Received correct string!");
else {
puts("Received INCORRECT string!");
return 1;
}
[accepted free];
[client close];
[server close];
} @catch(OFException *e) {
printf("EXCEPTION: %s\n", [e cString]);
return 1;
}
return 0;
}
|
>
|
|
|
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
if (!strcmp(buf, "IPv6:)"))
puts("Received correct string!");
else {
puts("Received INCORRECT string!");
return 1;
}
#endif
[accepted free];
[client free];
[server free];
} @catch(OFException *e) {
printf("EXCEPTION: %s\n", [e cString]);
return 1;
}
return 0;
}
|