Changeset f36479
- Timestamp:
- 10/07/08 10:02:35 (4 years ago)
- Branches:
- master
- Children:
- 02370d
- Parents:
- c93eb8
- git-author:
- Tomash Brechko <tomash.brechko@…> (10/07/08 10:02:35)
- git-committer:
- Tomash Brechko <tomash.brechko@…> (10/07/08 10:02:35)
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client.c
rb1ae26 rf36479 1531 1531 static const int enable = 1; 1532 1532 setsockopt(state->fd, IPPROTO_TCP, TCP_NODELAY, 1533 &enable, sizeof(enable));1533 (void *) &enable, sizeof(enable)); 1534 1534 state->socket_mode = TCP_LATENCY; 1535 1535 } … … 1547 1547 static const int disable = 0; 1548 1548 setsockopt(state->fd, IPPROTO_TCP, TCP_NODELAY, 1549 &disable, sizeof(disable));1549 (void *) &disable, sizeof(disable)); 1550 1550 state->socket_mode = TCP_THROUGHPUT; 1551 1551 } -
src/connect.c
rb1ae26 rf36479 105 105 socket_error_len = sizeof(socket_error); 106 106 res = getsockopt(fd, SOL_SOCKET, SO_ERROR, 107 &socket_error, &socket_error_len);107 (void *) &socket_error, &socket_error_len); 108 108 if (res == 0 && socket_error == 0) 109 109 break;
Note: See TracChangeset
for help on using the changeset viewer.
