io_getcookie man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

io_getcookie(3)						       io_getcookie(3)

NAME
       io_getcookie - retrieve cookie

SYNTAX
       #include <io.h>

       void* io_getcookie(int64 fd);

DESCRIPTION
       io_getcookie  retrieves a cookie (pointer to some anonymous data strucā€
       ture you associated with this descriptor).

       Use io_setcookie(3) to associate a cookie with a descriptor.

       If you did not associate a cookie with  this  descriptor,  io_getcookie
       returns NULL.

       The idea is that you put the state associated with a TCP connection you
       serve in a common struct.  Then you do not need to have your  own  data
       structure  to retrieve the state for a connection, you can just use the
       data structure io_wait already maintains.  The lookup works in constant
       time and should not cause any cache misses.

SEE ALSO
       io_wait(3), io_setcookie(3)

							       io_getcookie(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net