Differences From Artifact [d1393543d0]:
- File
src/socket.h
— part of check-in
[8f810ecb7e]
at
2018-08-11 14:00:46
on branch trunk
— Change the layout of of_socket_address_t
Instead of containing a struct sockaddr_storage - which does not exist
on all supported platforms - it now contains a union of all struct
sockaddr_* types.Additionally, if struct sockaddr_in6 does not exist, it is defined so
that an IPv6 can be stored even if the system does not support IPv6. (user: js, size: 5102) [annotate] [blame] [check-ins using]
To Artifact [0b7ecc62d1]:
- File src/socket.h — part of check-in [9a494f183b] at 2018-08-11 21:53:19 on branch trunk — Fix build on 3DS and Wii (user: js, size: 5148) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
70 71 72 73 74 75 76 77 78 79 80 81 82 83 | OF_ASSUME_NONNULL_BEGIN #ifndef OF_WINDOWS typedef int of_socket_t; #else typedef SOCKET of_socket_t; #endif /*! * @enum of_socket_address_type_t socket.h ObjFW/socket.h */ typedef enum { OF_SOCKET_ADDRESS_FAMILY_UNKNOWN, OF_SOCKET_ADDRESS_FAMILY_IPV4, | > > > > | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | OF_ASSUME_NONNULL_BEGIN #ifndef OF_WINDOWS typedef int of_socket_t; #else typedef SOCKET of_socket_t; #endif #ifdef OF_WII typedef u8 sa_family_t; #endif /*! * @enum of_socket_address_type_t socket.h ObjFW/socket.h */ typedef enum { OF_SOCKET_ADDRESS_FAMILY_UNKNOWN, OF_SOCKET_ADDRESS_FAMILY_IPV4, |
︙ | ︙ |