Hello,everyone,:),
I tried the AEL code in ADS help file of AEL (May 2003 version) Chapter 16. It is an example for push_message_handler function. My modified code is:
/****************************/
decl serverHandle=create_server ("myserver","Hello","");
decl sh,type,msg;
defun msgFn(sh,type,msg)
{
fputs(stderr,strcat("msg is:",msg));
}
push_message_handler(msgFn,serverHandle);
/***********************/
But nothing happened in the errro log window.
It seems the msgFn has never been called. It seems the msgFn is meant to accept the messages coming from serverHandle. I wonder how those three parameters(sh,type and msg)are transferred to msgFn function and why I can not get the message in error log window? Thanks a lot.
Best regards,
Dorr
I tried the AEL code in ADS help file of AEL (May 2003 version) Chapter 16. It is an example for push_message_handler function. My modified code is:
/****************************/
decl serverHandle=create_server ("myserver","Hello","");
decl sh,type,msg;
defun msgFn(sh,type,msg)
{
fputs(stderr,strcat("msg is:",msg));
}
push_message_handler(msgFn,serverHandle);
/***********************/
But nothing happened in the errro log window.
It seems the msgFn has never been called. It seems the msgFn is meant to accept the messages coming from serverHandle. I wonder how those three parameters(sh,type and msg)are transferred to msgFn function and why I can not get the message in error log window? Thanks a lot.
Best regards,
Dorr
Can you tell us what you want to achieve? As far as I know these commands are obsolete, so you shouldnt be using them. If we know what you intend to use them for maybe we can help you set it up..
Thanks
Nilesh 8)