C_Callback* ph_c_create_callback

(void(*callback_notify)(short,
  const char*, void*),
  void(*callback_newconnection)(const unsigned short,
  MAbstractConnection*, int,
  void*), void* notifydata,
  void* newconndata)

Create new C_Callback

Documentation

Create new C_Callback object. Function pointers are required to be given as parameters for dealing with notification and new connection callbacks. The notification function parameters are short (event id), const char* (address) and void* (user data). The new connection function parameters are const unsigned short (port number), MAbstractConnection* (connection object), int (connection id) and void* (user data). Given pointers to used data are stored and passed to corresponding callbacks each time callback function is called.

Parameters:
callback_notify - a pointer to function to deal with notification callbacks
callback_newconnection - a pointer to function to deal with new connections
notifydata - Pointer to notify function data
newconndata - Pointer to new connection function data
Returns:
pointer to new C_Callback object

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.