(Page 6 of 16 in this chapter)
ppxConnect
Description
- Makes simplex, duplex, or quad switch connection.
Prototype
- DWORD ppxConnect ( CTAHD ctahd,
PPX_MVIP_ADDR *talker,
PPX_MVIP_ADDR *listener,
PPX_CX_MODE mode )
- ctahd CTA context handle returned by ctaCreateContext.
- talker Pointer to a PPX_MVIP_ADDR structure. The structure is defined as follows:
typedef struct
{
DWORD switch_number;
DWORD bus;
DWORD stream;
DWORD timeslot;
} PPX_MVIP_ADDR
- See the Details section for a description of these fields.
- listener Pointer to a PPX_MVIP_ADDR structure.
- mode Connection mode: PPX_SIMPLEX,
PPX_DUPLEX, or PPX_QUAD.
Return Values
Events
Details
- This is a convenience function which "wraps" the functionality of ppxCreateConnection, ppxSetTalker, and ppxAddListener. ppxConnect makes one-talker to one listener connections. These connections use internal connection handles which cannot be accessed by the application. Listeners cannot be added to connections made by ppxConnect.
- The PPX_MVIP_ADDR structure contains the following fields:
See Also
- ppxDisconnect
Example
DWORD MyConnect( CTAHD ctahd, PPX_CX_MODE mode )
{
PPX_MVIP_ADDR listener, talker;
DWORD ret ;
talker.switch_number =0;
talker.bus = MVIP95_LOCAL_BUS;
talker.stream = 0;
talker.timeslot = 4;
listener.switch_number = 1 ;
listener.bus = MVIP95_LOCAL_BUS;
listener.stream = 5;
listener.timeslot = 4;
/*
* The passed in "mode" has one of the following
* values:
*
* PPX_SIMPLEX, PPX_DUPLEX, or PPX_QUAD
*/
ret = ppxConnect( ctahd, &talker, &listener, mode );
return ( ret ) ;
}
(Page 6 of 16 in this chapter)
tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights
reserved.