Differences From Artifact [f9393485f9]:
- File src/socket.h — part of check-in [4f49f55859] at 2018-08-05 20:00:03 on branch trunk — Add a few missing casts (user: js, size: 3726) [annotate] [blame] [check-ins using]
To Artifact [232e64699e]:
- File
src/socket.h
— part of check-in
[ab9810ef69]
at
2018-08-06 22:34:30
on branch trunk
— socket.m: Replace inet_{ntop,pton} with own impl
Not all OSes supported by ObjFW provide them. (user: js, size: 4355) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
123 124 125 126 127 128 129 130 131 132 133 134 135 136 | * @param IP The IP to parse * @param port The port to use * @return The parsed IP and port as an of_socket_address_t */ extern of_socket_address_t of_socket_address_parse_ip( OFString *IP, uint16_t port); /*! * @brief Compares two of_socket_address_t for equality. * * @param address1 The address to compare with the second address * @param address2 The second address * @return Whether the two addresses are equal */ | > > > > > > > > > > > > > > > > > > > > > > | 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 | * @param IP The IP to parse * @param port The port to use * @return The parsed IP and port as an of_socket_address_t */ extern of_socket_address_t of_socket_address_parse_ip( OFString *IP, uint16_t port); /*! * @brief Parses the specified IPv4 and port into an of_socket_address_t. * * @param IP The IPv4 to parse * @param port The port to use * @return The parsed IPv4 and port as an of_socket_address_t */ extern of_socket_address_t of_socket_address_parse_ipv4( OFString *IP, uint16_t port); #ifdef OF_HAVE_IPV6 /*! * @brief Parses the specified IPv6 and port into an of_socket_address_t. * * @param IP The IPv6 to parse * @param port The port to use * @return The parsed IPv6 and port as an of_socket_address_t */ extern of_socket_address_t of_socket_address_parse_ipv6( OFString *IP, uint16_t port); #endif /*! * @brief Compares two of_socket_address_t for equality. * * @param address1 The address to compare with the second address * @param address2 The second address * @return Whether the two addresses are equal */ |
︙ | ︙ |