Differences From Artifact [da76f2699e]:
- File tests/OFUDPSocketTests.m — part of check-in [b16f2b9e25] at 2018-07-28 17:38:30 on branch trunk — Rename of_{udp_ -> }socket_address (user: js, size: 2354) [annotate] [blame] [check-ins using]
To Artifact [1bbed581ea]:
- File
tests/OFUDPSocketTests.m
— part of check-in
[8aeee6680a]
at
2018-07-28 20:21:01
on branch trunk
— Add of_socket_address_ip_string()
This replaces of_address_to_string_and_port(). (user: js, size: 2291) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
53 54 55 56 57 58 59 | length: 6 receiver: &addr1])) TEST(@"-[receiveIntoBuffer:length:sender:]", [sock receiveIntoBuffer: buf length: 6 sender: &addr2] == 6 && | | | < < < < | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | length: 6 receiver: &addr1])) TEST(@"-[receiveIntoBuffer:length:sender:]", [sock receiveIntoBuffer: buf length: 6 sender: &addr2] == 6 && !memcmp(buf, "Hello", 6) && (host = of_socket_address_ip_string(&addr2, &port2)) && [host isEqual: @"127.0.0.1"] && port2 == port1) [OFUDPSocket resolveAddressForHost: @"127.0.0.1" port: port1 + 1 address: &addr3]; /* |
︙ | ︙ |