10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

*****************************************************************// DESCRIPTION: stDdaClUserJoinedSession// *****************************************************************int ST_DDA_API stDdaClJoiningSession(/*in*/ const char* sessionId,/*in*/ const StDdaClEntity *entity,/*in*/ const StDdaClEntity *scope){return ST_DDA_API_OK;} // end stDdaClUserJoinedSession// *****************************************************************// DESCRIPTION: stDdaClUserLeftSession// *****************************************************************int ST_DDA_API stDdaClLeavingSession(/*in*/ const char* sessionId,/*in*/ const StDdaClEntity *entity){return ST_DDA_API_OK;} // end stDdaClUserLeftSession// *****************************************************************// DESCRIPTION: stDdaSessionMsg// *****************************************************************int ST_DDA_APIstDdaClSessionMsg(/*in*/ const char* sessionId,/*in*/ const StDdaClEntity *sender,/*in*/ unsigned long msgLen,/*in*/ const char *msg,/*in*/ const StDdaClEntity *receiver){return ST_DDA_API_OK;} // end stDdaSessionMsgThe first thing to notice about this set of code is that the chat logging facilityworks (as you might expect) entirely on callbacks from the Sametime server.This file implements all of the required entry points that the server will invoke forvarious event occurrences. Note that the chat logging SPI is documented in thetoolkit file stddatkdevguide.pdf:►►stDdaClInit: Called one time when the server loads the chat logging DLL. Thisis where you do all of your one-time setup, such as initializing the Notes API.stDdaClTerminate: Called one time when the Sametime server is about toshut down. Anything that you allocated or initialized in the Init call would bedeallocated or terminated in this call.Chapter 5. Chat Logging/DDA Toolkit 135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!