ObjFW  Check-in [add10740d1]

Overview
Comment:On some systems, localhost doesn't work for IPv6, thus use ::1.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: add10740d1e6891aa0833b6a1841bce58b4a75cb983921c45f04b07c3ca24f1c
User & Date: js on 2008-12-13 13:52:01
Other Links: manifest | tags
Context
2008-12-13
14:50
Add missing const for some return types; new exception. check-in: 46b770d066 user: js tags: trunk
13:52
On some systems, localhost doesn't work for IPv6, thus use ::1. check-in: add10740d1 user: js tags: trunk
13:42
Only test IPv6 if we have support for it. check-in: cabd461d39 user: js tags: trunk
Changes

Modified tests/OFTCPSocket/OFTCPSocket.m from [115d881410] to [2ff21729c6].

74
75
76
77
78
79
80
81

82
83
84
85
86

87
88
89
90
91
92
93
74
75
76
77
78
79
80

81
82
83
84
85

86
87
88
89
90
91
92
93







-
+




-
+







		[accepted free];
		[client close];
		[server close];

		puts("== IPv6 ==");
		port = get_port();

		[server bindOn: "localhost"
		[server bindOn: "::1"
		      withPort: port
		     andFamily: AF_INET6];
		[server listen];

		[client connectTo: "localhost"
		[client connectTo: "::1"
			   onPort: port];

		accepted = [server accept];

		[client writeCString: "IPv6:)"];
		[accepted readNBytes: 6
			  intoBuffer: (uint8_t*)buf];