Changeset 1405 for pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
- Timestamp:
- Jul 20, 2007 8:08:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
r1266 r1405 101 101 */ 102 102 optlen = sizeof(key->fd_type); 103 rc = pj_sock_getsockopt(sock, PJ_SOL_SOCKET, PJ_SO_TYPE,103 rc = pj_sock_getsockopt(sock, pj_SOL_SOCKET(), pj_SO_TYPE(), 104 104 &key->fd_type, &optlen); 105 105 if (rc != PJ_SUCCESS) 106 key->fd_type = PJ_SOCK_STREAM;106 key->fd_type = pj_SOCK_STREAM(); 107 107 108 108 /* Create mutex for the key. */ … … 270 270 * so that send() can work in parallel. 271 271 */ 272 if (h->fd_type == PJ_SOCK_DGRAM) {272 if (h->fd_type == pj_SOCK_DGRAM()) { 273 273 pj_list_erase(write_op); 274 274 … … 316 316 if (send_rc!=PJ_SUCCESS || 317 317 write_op->written == (pj_ssize_t)write_op->size || 318 h->fd_type == PJ_SOCK_DGRAM)318 h->fd_type == pj_SOCK_DGRAM()) 319 319 { 320 320 321 321 write_op->op = PJ_IOQUEUE_OP_NONE; 322 322 323 if (h->fd_type != PJ_SOCK_DGRAM) {323 if (h->fd_type != pj_SOCK_DGRAM()) { 324 324 /* Write completion of the whole stream. */ 325 325 pj_list_erase(write_op);
Note: See TracChangeset
for help on using the changeset viewer.