(Page 5 of 7 in this chapter)
TxDIConnect
Description
- Make a connection between a particular voice stream and a remote IP address.
Prototype
- DICONN_HANDLE TxDIConnect (TXDI_HANDLE handle,
short logicalPort,
unsigned char destIPAddr,
long sessionId,
unsigned char pktType,
short *errCode)
- handle Handle returned in previous open request.
- logicalPort Virtual port number (1..32). This is the virtual port number that is associated with a particular digital data stream.
- destIPAddr IP Address of remote computer (a.b.c.d). This can be either another TX board or a user PC on the IP network.
- sessionId Application assigned session ID. This ID must be unique for each combination of this host IP address and the remote computers IP address.
- pktType User-specified packet type to use in type field of session header.
- errCode Pointer to an address of a short value for error code return.
Return Values
- dihandle Handle to be used in the TxDIDisConnect. Returns -1 if unsuccessful.
- errCode TXAPI_SUCCESS or else a TXAPI error code or CPK error code.
Details
- The logicalPort parameter in this request identifies the virtual port number defined earlier in the application. It is up to the host-based application to manage the mappings between a particular voice channel and the virtual port that it is communicating on.
See Also
- TxDIDisConnect
(Page 5 of 7 in this chapter)
tech_support@nmss.com
Copyright © 1998, Natural MicroSystems, Inc. All rights
reserved.