BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

#include <ioqueue.h>

Data Fields

void * internal__ [32]
 
void * activesock_data
 
void * user_data
 

Detailed Description

This structure describes operation specific key to be submitted to I/O Queue when performing the asynchronous operation. This key will be returned to the application when completion callback is called.

Application normally wants to attach it's specific data in the user_data field so that it can keep track of which operation has completed when the callback is called. Alternatively, application can also extend this struct to include its data, because the pointer that is returned in the completion callback will be exactly the same as the pointer supplied when the asynchronous function is called.

Field Documentation

◆ activesock_data

void* pj_ioqueue_op_key_t::activesock_data

Active socket data.

◆ internal__

void* pj_ioqueue_op_key_t::internal__[32]

Internal I/O Queue data.

◆ user_data

void* pj_ioqueue_op_key_t::user_data

Application data.


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

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.