ONPOSIX  2.0
 All Classes Namespaces Files Functions Variables Enumerator Friends Macros Pages
PosixDescriptor::job Struct Reference

Single asynchronous operation. More...

Public Types

enum  {
  NONE = 0, READ_BUFFER = 1, READ_VOID = 2, WRITE_BUFFER = 3,
  WRITE_VOID = 4
}
 Type of scheduled async operation. More...

Public Attributes

enum
onposix::PosixDescriptor::job:: { ... }  
job_type_
 Type of scheduled async operation.
size_t size_
 Size of data to be read/written.
void(* buff_handler_ )(Buffer *b, size_t size)
 Handler in case of read/write operation on a Buffer.
Bufferbuff_buffer_
 Buffer in case of read/write operation on a Buffer.
void(* void_handler_ )(void *b, size_t size)
 Handler in case of read/write operation on a void*.
void * void_buffer_
 void* pointer in case of read/write operation on a void*

Detailed Description

Single asynchronous operation.

This data structure contains information about a single pending asynchronous operation.

Definition at line 66 of file PosixDescriptor.hpp.

Member Enumeration Documentation

anonymous enum

Type of scheduled async operation.

Enumerator:
NONE 
READ_BUFFER 
READ_VOID 
WRITE_BUFFER 
WRITE_VOID 

Definition at line 70 of file PosixDescriptor.hpp.

{
NONE = 0, //< No operation scheduled
READ_BUFFER = 1, //< Read operation on a Buffer
READ_VOID = 2, //< Read operation on a void*
WRITE_BUFFER = 3, //< Write operation on a Buffer
WRITE_VOID = 4 //< Write operation on a void*

Member Data Documentation

Buffer* buff_buffer_

Buffer in case of read/write operation on a Buffer.

Definition at line 90 of file PosixDescriptor.hpp.

void(* buff_handler_)(Buffer *b, size_t size)

Handler in case of read/write operation on a Buffer.

Definition at line 85 of file PosixDescriptor.hpp.

enum { ... } job_type_

Type of scheduled async operation.

size_t size_

Size of data to be read/written.

Definition at line 79 of file PosixDescriptor.hpp.

void* void_buffer_

void* pointer in case of read/write operation on a void*

Definition at line 101 of file PosixDescriptor.hpp.

void(* void_handler_)(void *b, size_t size)

Handler in case of read/write operation on a void*.

Definition at line 95 of file PosixDescriptor.hpp.


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