Differences From Artifact [c74fa51c3e]:
- File src/socket.h — part of check-in [9e76144ef8] at 2015-06-13 22:26:05 on branch trunk — Add support for and use the new nullability (user: js, size: 1832) [annotate] [blame] [check-ins using]
To Artifact [6b8f6a13f5]:
- File
src/socket.h
— part of check-in
[ed4549ddd3]
at
2015-10-17 10:59:15
on branch trunk
— Add a port registry for the Wii
This is necessary as the Wii does not allow picking a random free port,
and thus we need to track which ports are used. (user: js, size: 2006) [annotate] [blame] [check-ins using]
︙ | |||
81 82 83 84 85 86 87 88 89 90 91 92 93 | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | + + + + | extern "C" { #endif extern bool of_socket_init(void); extern int of_socket_errno(void); # ifndef __wii__ extern int of_getsockname(of_socket_t socket, struct sockaddr *restrict address, socklen_t *restrict address_len); # else extern bool of_socket_port_register(uint16_t port, int type); extern void of_socket_port_free(uint16_t port, int type); extern uint16_t of_socket_port_find(int type); # endif #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |