Previous PageTable Of Contents../index.htmlIndexNext Page

dt_castdecode( )

Description | Example | Errors | See Also

Name:

int dt_castdecode (msgp, decmsgbufp)

Inputs:

void *msgp

  Pointer to encoded message block

 

void *decmsgbufp

  Pointer to destination buffer of decoded message block

Returns:

0 on success
-1 on failure

Includes:

dtilib.h

Category:

CAS DTI Convenience

Mode:

synchronous

Top Of PageDescription

The dt_castdecode( ) function is called internally by the DTI event retriever for each CAS DTI reply or event message block that occurs. Its purpose is to decode the CAS DTI reply or event message block before it is given to dt_castmgmt( ) or the application, respectively. This function is offered to localize the tasks of host system issues (i.e. byte swapping) and message formation with regards to messages that are passed across the host system bus.

The dt_castdecode( ) function takes as its first parameter a CAS DTI message block. It will use the decmsgbufp parameter to return the decoded message block. The operation of this function does not prevent msgp and decmsgbufp from being the same buffer.

Top Of PageExample

Top Of PageErrors

This function returns -1 if it does not recognize the msg_code field the reply or event message block.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001