size_t   availableData;  resultOT = OTCountDataBytes((EndpointRef)fd->secret->md.osfd, &availableData); *readReady = fd->secret->md.readReady && (availableData > 0);
size_t   availableData = 1; if (!fd->secret->md.orderlyDisconnect) OTCountDataBytes((EndpointRef)fd->secret->md.osfd, &availableData);  *readReady = fd->secret->md.readReady && (availableData > 0);
static PRBool GetState(PRFileDesc *fd, PRBool *readReady, PRBool *writeReady, PRBool *exceptReady){    OTResult resultOT;	size_t   availableData;    	resultOT = OTCountDataBytes((EndpointRef)fd->secret->md.osfd, &availableData);   	*readReady = fd->secret->md.readReady && (availableData > 0);	*exceptReady = fd->secret->md.exceptReady;    resultOT = OTGetEndpointState((EndpointRef)fd->secret->md.osfd);    switch (resultOT)    {        case T_DATAXFER:        case T_INREL:            *writeReady = PR_TRUE;            break;        default:            *writeReady = PR_FALSE;    }        return  *readReady || *writeReady || *exceptReady;}