Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport ReferenceChapter 22 - Endpoints Reference / Functions
Determining if Bytes Are Available Open Transport provides the function OTCountDataBytes to determine whether bytes are available to be read from an endpoint (without actually reading them).
OTCountDataBytes