The sepdrout function for Win32, MS-DOS, and OS/2 allows an application to perform its own routing of received messages by setting up a procedure that is called by the DMOD when a message is received.
DWORD sepdrout(
DWORD *proc_addr, | |
(BUFHDR *, USHORT, USHORT | |
); |
USHORT FAR sepdrout(
USHORT (FAR *FAR proc_addr)(); | |
); |
This facility is only available to clients, as defined in the call to sbpuinit.
An application can have up to four routing procedures. Note that the APPC and CSV libraries each use a routing procedure. When the DMOD receives a message, each routing procedure is called, until one accepts the message.
See routproc for an example of a routing procedure.