Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 14 in this chapter) Version


mspEnableChannel

Description

Enables the MSPP channel to begin processing data.

Prototype

DWORD mspEnableChannel (MSPHD chnhd)

chnhd MSPP channel handle.

Return Values

Events

Details

Created MSPP channels are disabled, by default, and must be enabled before data is sent or received. When invoking mspEnableChannel, specify the channel handle (chnhd) of the connected channel. As soon as data is transferred, the connection channel processes the data and passes it on to the endpoint at the opposite end of the connection.

mspEnableChannel can also be used to re-establish data flow through a channel that had previously been disabled.

See Also

mspCreateChannel, mspDisableChannel

Example


ret = mspEnableChannel( hChan);
if (ret != SUCCESS)
return FAILURE;
// Wait for event
ctaWaitEvent( hCta, &Event, CTA_WAIT_FOREVER );
// Check the reason code
if ( Event.id != MSPEVN_ENABLE_CHANNEL_DONE ||
Event.value != CTA_REASON_FINISHED )
return FAILURE;


Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 14 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.