High Performance OPC UA Server SDK  1.1.0.158
ua_socket_op Struct Reference

Structure representing an asynchronous IO operation. More...

#include <uanetwork_types.h>

Data Fields

struct ua_bufferbuffer
 Buffer for transmitting data - set before start. More...
 
unsigned int iFlags
 Operation control flags. More...
 
ua_socket_op_cbpfCallback
 Event callback pointer. More...
 
void * pvCallbackData
 Data passed to pfCallback. More...
 
struct ua_net_addr addr
 Peer address for recvfrom operation.
 
struct ua_socketx_pSocket
 INTERNAL Socket on which the transaction is taking place! More...
 
int x_iOperationType
 INTERNAL Operation Type. More...
 
struct ua_socket_opx_pNext
 INTERNAL Pointer to next operation in sequence. More...
 
OVERLAPPED x_Overlapped
 
struct ua_buffer Buffer
 INTERNAL Operation Type.
 

Detailed Description

Structure representing an asynchronous IO operation.

Initialize with 0! The flags allow to control the completion of the operation. If set to UA_NET_F_NONE the operation will finish strictly asynchronously by invoking the callback from within ua_net_do_events(). UA_NET_F_ALLOWSYNC Will allow the operation to finish synchronously. In this case the callback won't be called and the function returns UA_NET_E_GOOD instead of UA_NET_E_ASYNC. If no callback is set the flag UA_NET_F_COMPLETE is set after completion. In this case the owner of the structure must check the field after ua_net_do_events().

Field Documentation

struct ua_buffer * buffer

Buffer for transmitting data - set before start.

unsigned int iFlags

Operation control flags.

Buffer for transmitting data - set before start.

ua_socket_op_cb * pfCallback

Event callback pointer.

Operation control flags.

void * pvCallbackData

Data passed to pfCallback.

Operation event callback pointer.

int x_iOperationType

INTERNAL Operation Type.

INTERNAL Socket on which the transaction is taking place!

struct ua_socket_op * x_pNext

INTERNAL Pointer to next operation in sequence.

struct ua_socket * x_pSocket

INTERNAL Socket on which the transaction is taking place!

INTERNAL Overlapped transfer operation! MUST BE THE FIRST ELEMENT!


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