EZ_RegisterMessageHandler man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

EZ_RegisterMessageHandler(3)	EZWGL Functions	  EZ_RegisterMessageHandler(3)

NAME
       EZ_RegisterMessageHandler,  EZ_DeleteMessageHandler - add/delete a mes‐
       sage handler

SYNOPSIS
       #include <EZ.h>

       typedef struct {
	 Atom	    messageType;    /* message type   */
	 int	    messageLength;  /* message length */
	 char	    *message;	    /* the message    */
	 int	    messageId;	    /* message Id     */
	 int	    replyId;	    /* if request, the message id to reply */
	 int	    isReply;	    /* flag whether the message is a reply */
	 Window	    sender;	    /* sender's communication window id	 */
	 Atom	    senderClass;    /* sender's class name */
	 Atom	    senderInstance; /* sender's instance name */
	 int	    senderIsSelf;   /* is message originated from the myself? */
       } EZ_Message;

       typedef void (*EZ_MessageHandler)(EZ_Message *msgIn, void *client_data);

       void EZ_RegisterMessageHandler(Atom type, int messageId, void *client_data,
				 EZ_MessageHandler handler, int timeout,
				 EZ_CallBack timeoutCB, void cdata)

       void EZ_DeleteMessageHandler(Atom type, int messageId, void *client_data,
				 EZ_MessageHandler handler)

ARGUMENTS
       handler	Specifies a message handler.

       client_data  Specifies an application data to be passed to the handler.

       messageId Specifies a serial number. Serial number  is  local  to  each
       application so the sender has to keep track of it.

       timeout	Specifies  the life span of this handler, in seconds. The han‐
       dler will be deleted after the specified number of seconds elapses.  If
       zero or negative, the handler will have an infinite life span.

       timeoutCB Specifies a procedure to execute when the handler expires.

       cdata Specifies a client data to be passed to timeoutCB.

DESCRIPTION
       EZ_RegisterMessageHandler  registers  a message handler with EZWGL. The
       message handler will be invoked when a messages with the specified type
       and  ID arrives. If timeout>0, the handler will expire in the specified
       number of seconds; when it expires, it executes timeoutCB if supplied.

       EZ_DeleteMessageHandler deletes the  registered	message	 handler  that
       matches the specification.

SEE ALSO
       EZ_SetDefaultMessageHandler(3),	 EZ_BroadcastMessage(3),  EZ_ReplyMes‐
       sage(3)

EZWGL						  EZ_RegisterMessageHandler(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net