int32 DSGetChannel (Item msgItem, DSRequestMsgPtr reqMsg, DSStreamCBPtr streamCBPtr, DSDataType streamType, long channelNumber, long* channelStatusPtr)
DSGetChannel()
writes the status of the channel to the variable pointed to by channelStatusPtr
.
DSGetChannel()
sets the members of the message data structure required to request the status of the channel. (The message is the DSRequestMsg
identified by reqMsg
). If a message is specified, DSGetChannel()
sends the message and returns immediately. If no message is specified (if reqMsg
is NULL
), DSGetChannel()
creates a message, sends it to the DataStreamer, and waits until the message has been received before returning.
msgItem
reqMsg
DSRequestMsg
message that is formatted and sent to the DataStreamer. A value of NULL
forces creation of an internal DSRequestMsg
message and synchronous operation.
streamCBPtr
streamType
channelNumber
channelStatusPtr
reqMsg
are set to the following values:
whatToDo
- kDSOpGetChannel
msg.getChannel.streamType
msg.getChannel.channelNumber
msg.getChannel.channelStatusPtr
SendMsg()
or WaitPort()
failed
VALIDATE_REQUEST_CODE
symbol is enabled).
See "Error Messages" in the 3DO Portfolio Reference Manual for a listing of error messages returned by SendMsg()
and WaitPort()
.
DSSetChannel