ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ns3::poll_table_ref Struct Reference

Public Attributes

void * opaque
int ret

Detailed Description

Struct used to pass pool table context between DCE and Kernel and back from Kernel to DCE

When calling sock_poll we provide in ret field the wanted eventmask, and in the opaque field the DCE poll table

if a corresponding event occurs later, the PollEvent will be called by kernel with the DCE poll table in context variable, then we will able to wake up the thread blocked in poll call.

Back from sock_poll method the kernel change ret field with the response from poll return of the corresponding kernel socket, and in opaque field there is a reference to the kernel poll table we will use this reference to remove us from the file wait queue when ending the DCE poll call or when ending the DCE process which is currently polling.

Definition at line 993 of file linux-socket-fd-factory.cc.

Member Data Documentation

void* ns3::poll_table_ref::opaque

Definition at line 996 of file linux-socket-fd-factory.cc.

Referenced by ns3::LinuxSocketFdFactory::Poll().

int ns3::poll_table_ref::ret

Definition at line 995 of file linux-socket-fd-factory.cc.

Referenced by ns3::LinuxSocketFdFactory::Poll().


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