Lines Matching refs:pd
90 PRPollDesc pd;
175 pd.fd = sock;
176 pd.in_flags = PR_POLL_WRITE | PR_POLL_EXCEPT;
178 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
180 n = PR_Poll(&pd, 1, timeout);
187 if (pd.out_flags & PR_POLL_READ) {
190 if (pd.out_flags & PR_POLL_WRITE) {
193 if (pd.out_flags & PR_POLL_EXCEPT) {
196 if (pd.out_flags & PR_POLL_ERR) {
199 if (pd.out_flags & PR_POLL_NVAL) {
203 if (PR_GetConnectStatus(&pd) == PR_SUCCESS) {
209 pd.in_flags = PR_POLL_READ;
211 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
296 PRPollDesc pd;
378 pd.fd = conn_fd;
379 pd.in_flags = PR_POLL_WRITE | PR_POLL_EXCEPT;
381 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
383 n = PR_Poll(&pd, 1, timeout);
391 if (PR_GetConnectStatus(&pd) == PR_SUCCESS) {
400 pd.in_flags = PR_POLL_WRITE;
404 rv = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
411 PR_ASSERT((rv == 1) && (pd.out_flags == PR_POLL_WRITE));
425 pd.in_flags = PR_POLL_READ;
429 rv = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
436 PR_ASSERT((rv == 1) && (pd.out_flags == PR_POLL_READ));
493 PRPollDesc pd;
556 pd.fd = conn_fd;
557 pd.in_flags = PR_POLL_WRITE | PR_POLL_EXCEPT;
559 n = PR_Poll(&pd, 1, PR_INTERVAL_NO_TIMEOUT);
561 n = PR_Poll(&pd, 1, timeout);
569 if (PR_GetConnectStatus(&pd) == PR_SUCCESS) {