socket_client_globals Struct Reference
[Sockets]

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.

Detailed Description

Socket client library global data.


Field Documentation

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().

The last socket identifier.

Active sockets.

Referenced by socket_get_sockets().

TCP module phone.

Referenced by socket_get_tcp_phone().

UDP module phone.

Referenced by socket_get_udp_phone().


The documentation for this struct was generated from the following file:

Generated on Thu Mar 11 20:48:30 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1