Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberStream


GetStreamStatus

Retrieves the current status flags for this Cyberdog stream.

StreamStatus GetStreamStatus ();
return value
A set of status flags, expressed as a 16-bit integer.
DISCUSSION
This method returns the current status of the stream as a set of flags. You can use the logical & operator to determine whether a particular flag is set. The following example calls GetStreamStatus and then tests the kCDDataAvailable flag:

StreamStatus status;

status = fStream->GetStreamStatus (ev);
if (status & kCDDataAvailable) 
{
   ...
}
GetStreamStatus may be called at interrupt time.

If you subclass CyberStream, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The StreamStatus type (page 179).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996