SemysLinkReceiveProt

01 This function will be called as callback from the link when it received a data packet.
02

int32 (*SemysLinkReceiveProt)(HSemysListener listener, HSemysLink link, SemysDataBuffer *pBuf);

03 Parameters:
  • listener: The listener handle from the SemysLinkListener structure.
  • link: The link calling this callback.
  • pBuf: A SemysDataBuffer that contains the received data.
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 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.
07 Because the Link sub-system is using the Gatherer sub-system, every data packet transmitted via SemysLinkTransmitProt() will be received by exactly one SemysLinkReceiveProt() callback (pending connected state).
08 Global Lock: Required
Reference: SemysLink.h
Implementation: Semys Library
See Also: Link Sub-System, SemysLinkTransmitProt()

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