Differences From Artifact [a024642fe6]:
- File
src/socket.m
— part of check-in
[f18615e057]
at
2015-02-18 22:56:46
on branch trunk
— Add of_getsockname() and make use of it
of_getsockname() calls getsockname() after acquiring a mutex. This is
necessary as some implementations of getsockname() are not thread-safe. (user: js, size: 3600) [annotate] [blame] [check-ins using]
To Artifact [a318aca5b3]:
- File src/socket.m — part of check-in [099e939079] at 2015-03-22 11:42:08 on branch trunk — Abstract int vs SOCKET as of_socket_t (user: js, size: 3608) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
162 163 164 165 166 167 168 | return 0; #endif } #ifndef __wii__ int | | | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | return 0; #endif } #ifndef __wii__ int of_getsockname(of_socket_t socket, struct sockaddr *restrict address, socklen_t *restrict address_len) { int ret; # ifdef OF_HAVE_THREADS if (!of_mutex_lock(&mutex)) @throw [OFLockFailedException exception]; |
︙ | ︙ |