SemysServerSetListenerProt

01 Modifies the listener callbacks or destroys a server.
02

int32 SemysServerSetListenerProt(HSemysServer server, SemysServerListener const *pListener);

03 Parameters:
  • server: The server that should be modified.
  • pListener: The new owner interface for the server 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 server. No more callbacks will be called by it again.
06 When a server is to be destroyed (passing 0 as the listener pointer) may leave the server (and its thread) present for a short period of time. This results from avoiding dead lock conditions when the server 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, SemysServerCreateProt()

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