SemysConnSetListenerProt

01 Modifies the listener callbacks or destroys a connection.
02

int32 SemysConnSetListenerProt(HSemysConn conn, SemysConnListener const *pListener);

03 Parameters:
  • conn: The connection that should be modified.
  • pListener: The new owner interface for the connection or 0.
04 Return Values:
Nonzero if the listener interface could be applied or 0 otherwise.
05 Passing 0 as the listener pointer will destroy the connection. No more callbacks will be called by it again.
06 When a connection is to be destroyed (passing 0 as the listener pointer) may leave the connection (and its thread) present for a short period of time. This results from avoiding dead lock conditions when the connection wants to call a callback at the same time (which also requires the global lock, in which this function is).
07 Global Lock: Required
Reference: SemysTransporter.h
Implementation: Semys Library
See Also: Transporter Sub-System, SemysConnCreateProt()

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