Overview
Comment: | Minor fixes for last commit |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | new-naming-convention |
Files: | files | file ages | folders |
SHA3-256: |
c45a1085852f19c7a156f5988937526b |
User & Date: | js on 2021-04-17 14:05:38 |
Other Links: | branch diff | manifest | tags |
Context
2021-04-17
| ||
14:13 | Always prefix functions with the type check-in: eb0cfa6ff9 user: js tags: new-naming-convention | |
14:05 | Minor fixes for last commit check-in: c45a108585 user: js tags: new-naming-convention | |
13:58 | of_socket_address_t -> OFSocketAddress check-in: e3c5bb70dd user: js tags: new-naming-convention | |
Changes
Modified src/OFUDPSocket.h from [758612bc48] to [7fc9c66432].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | - + | * @brief A class which provides methods to create and use UDP sockets. * * Addresses are of type @ref OFSocketAddress. You can use the current thread's * @ref OFDNSResolver to create an address for a host / port pair, * @ref OFSocketAddressString to get the IP address string for an address and * @ref OFSocketAddressPort to get the port for an address. If you want to * compare two addresses, you can use |
︙ |
Modified src/socket.m from [b7f2de7d48] to [35ea54e031].
︙ | |||
676 677 678 679 680 681 682 | 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 | - + - + | OF_HASH_FINALIZE(hash); return hash; } static OFString * |
︙ | |||
761 762 763 764 765 766 767 | 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 | - + - + | } OFString * OFSocketAddressString(const OFSocketAddress *address) { switch (address->family) { case OFSocketAddressFamilyIPv4: |
︙ |
Modified tests/OFIPXSocketTests.m from [fbc341af78] to [2def7aa281].
︙ | |||
59 60 61 62 63 64 65 | 59 60 61 62 63 64 65 66 67 68 69 70 | - + | TEST(@"-[sendBuffer:length:receiver:]", R([sock sendBuffer: "Hello" length: 5 receiver: &address1])) TEST(@"-[receiveIntoBuffer:length:sender:]", [sock receiveIntoBuffer: buffer length: 5 sender: &address2] == 5 && memcmp(buffer, "Hello", 5) == 0 && OFSocketAddressEqual(&address1, &address2) && |