SemysGathReceiveProt

01 This function will be called as callback from the gatherer when it properly received a frame.
02

typedef int (*SemysGathReceiveProt)(HSemysGatherer gath, HSemysConn conn, SemysDataBuffer *pBuf, uint32 hash);

03 Parameters:
  • gath: The Gatherer object handle.
  • conn: The connection that received the data.
  • pBuf: A SemysDataBuffer that contains the received frame.
  • hash: A calculated hash value from the frame.
04 Return Values:
Nonzero if the user takes ownership over the data buffer or 0 otherwise.
05 This typedef is a placeholder for the actual user code provided callback function.
06 The user code has to retrieve its listener handle via a call to SemysGathGetListenerHandleProt().
07 To avoid unnecessary memory allocations, the user may claim ownership of the data buffer by returning a nonzero value. If this callback returns 0, the buffer will be freed automatically afterwards.
08 Global Lock: Required
Reference: SemysTransporter.h
Implementation: Semys Library
See Also: Transporter Sub-System, SemysGathGetListenerHandleProt(), SemysGathConnTransmitNProt()

Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details.