Overview
Comment: | OFUDPSocket: Return socket address bound to |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
65154c25762528685e1660f2b2701de0 |
User & Date: | js on 2023-05-21 10:04:22 |
Other Links: | manifest | tags |
Context
2023-05-21
| ||
11:04 | OFTCPSocket: Return socket address bound to check-in: fc161d1948 user: js tags: trunk | |
10:04 | OFUDPSocket: Return socket address bound to check-in: 65154c2576 user: js tags: trunk | |
08:43 | utils/ofdns: Add --tcp option check-in: 55d7e1741e user: js tags: trunk | |
Changes
Modified src/OFUDPSocket+Private.h from [c4f3672d40] to [44155f32ea].
︙ | |||
15 16 17 18 19 20 21 | 15 16 17 18 19 20 21 22 23 24 25 | - + - | #import "OFUDPSocket.h" OF_ASSUME_NONNULL_BEGIN OF_DIRECT_MEMBERS @interface OFUDPSocket () |
Modified src/OFUDPSocket.h from [d52363c244] to [91885680ff].
︙ | |||
67 68 69 70 71 72 73 | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | - + - + | /** * @brief Binds the socket to the specified host and port. * * @param host The host to bind to. Use `@"0.0.0.0"` for IPv4 or `@"::"` for * IPv6 to bind to all. * @param port The port to bind to. If the port is 0, an unused port will be * chosen, which can be obtained using the return value. |
Modified src/OFUDPSocket.m from [bb467c718b] to [c3dd64f929].
︙ | |||
36 37 38 39 40 41 42 | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | - - + + - - + + + + | #import "OFAlreadyOpenException.h" #import "OFBindIPSocketFailedException.h" @implementation OFUDPSocket @dynamic delegate; |
︙ | |||
98 99 100 101 102 103 104 | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | - + - - - + + + - - - + - - - - + + + - + + - + + - - + + - - - - - - - - - - + - + - + | (struct sockaddr *)&address->sockaddr, address->length)) == 0) break; if (OFSocketErrNo() != EADDRINUSE) { int errNo = OFSocketErrNo(); OFString *host = OFSocketAddressString(address); |
Modified tests/OFUDPSocketTests.m from [8889bdb6ea] to [8fc77398a2].
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - - + - - - + - + + | static OFString *const module = @"OFUDPSocket"; @implementation TestsAppDelegate (OFUDPSocketTests) - (void)UDPSocketTests { void *pool = objc_autoreleasePoolPush(); OFUDPSocket *sock; |
︙ |