Differences From Artifact [2398c8daff]:
- File tests/OFSPXSocketTests.m — part of check-in [b29f11ed25] at 2022-10-22 16:41:01 on branch trunk — OF[IS]PX(Stream)Socket: Bind with network & node (user: js, size: 5389) [annotate] [blame] [check-ins using] [more...]
To Artifact [951eb7a23c]:
- File
tests/OFSPXSocketTests.m
— part of check-in
[a54730b88f]
at
2022-10-22 18:41:45
on branch trunk
— OFSocket: Don't combine port for IP and IPX
While it works for those two protocols, it's a bad precedent as other
protocols have different types for ports. (user: js, size: 5395) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
116 117 118 119 120 121 122 | objc_autoreleasePoolPop(pool); return; } network = OFSocketAddressIPXNetwork(&address1); OFSocketAddressGetIPXNode(&address1, node); | | | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | objc_autoreleasePoolPop(pool); return; } network = OFSocketAddressIPXNetwork(&address1); OFSocketAddressGetIPXNode(&address1, node); port = OFSocketAddressIPXPort(&address1); TEST(@"-[listen]", R([sockServer listen])) TEST(@"-[connectToNetwork:node:port:]", R([sockClient connectToNetwork: network node: node port: port])) TEST(@"-[accept]", (sockAccepted = [sockServer accept])) |
︙ | ︙ | |||
156 157 158 159 160 161 162 | [sockServer listen]; [sockServer asyncAccept]; delegate->_expectedNetwork = network = OFSocketAddressIPXNetwork(&address1); OFSocketAddressGetIPXNode(&address1, node); memcpy(delegate->_expectedNode, node, IPX_NODE_LEN); | | | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | [sockServer listen]; [sockServer asyncAccept]; delegate->_expectedNetwork = network = OFSocketAddressIPXNetwork(&address1); OFSocketAddressGetIPXNode(&address1, node); memcpy(delegate->_expectedNode, node, IPX_NODE_LEN); delegate->_expectedPort = port = OFSocketAddressIPXPort(&address1); @try { [sockClient asyncConnectToNetwork: network node: node port: port]; [[OFRunLoop mainRunLoop] runUntilDate: |
︙ | ︙ |