Socket client library global data. More...
Data Fields | |
int | tcp_phone |
TCP module phone. | |
int | udp_phone |
UDP module phone. | |
sockets_ref | sockets |
The last socket identifier. | |
fibril_rwlock_t | lock |
Safety lock. |
Socket client library global data.
fibril_rwlock_t socket_client_globals::lock |
Safety lock.
Write lock is used only for adding or removing sockets. When locked for writing, no other socket locks need to be locked. When locked for reading, any other socket locks may be locked. No socket lock may be locked if this lock is unlocked.
Referenced by accept(), closesocket(), getsockopt(), listen(), recvfrom_core(), sendto_core(), socket(), socket_connection(), and socket_send_data().
sockets_ref socket_client_globals::sockets |
TCP module phone.
Referenced by socket_get_tcp_phone().
UDP module phone.
Referenced by socket_get_udp_phone().