Changeset 28 for pjproject/main/pjlib/src/pj/ioqueue_common_abs.c
- Timestamp:
- Nov 7, 2005 9:58:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/src/pj/ioqueue_common_abs.c
r17 r28 169 169 * successfully (if SO_ERROR is zero). 170 170 */ 171 int value; 172 socklen_t vallen = sizeof(value); 173 int gs_rc = getsockopt(h->fd, SOL_SOCKET, SO_ERROR, 171 { 172 int value; 173 socklen_t vallen = sizeof(value); 174 int gs_rc = getsockopt(h->fd, SOL_SOCKET, SO_ERROR, 174 175 &value, &vallen); 175 if (gs_rc != 0) {176 if (gs_rc != 0) { 176 177 /* Argh!! What to do now??? 177 178 * Just indicate that the socket is connected. The … … 180 181 */ 181 182 bytes_transfered = 0; 182 } else {183 } else { 183 184 bytes_transfered = value; 184 } 185 } 186 } 185 187 #elif defined(PJ_WIN32) && PJ_WIN32!=0 186 188 bytes_transfered = 0; /* success */
Note: See TracChangeset
for help on using the changeset viewer.