Changeset 10508 for trunk/libtransmission/net.c
- Timestamp:
- Apr 22, 2010, 1:49:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/net.c
r10498 r10508 36 36 #include <WS2tcpip.h> 37 37 #else 38 #include <sys/socket.h> 39 #include <netinet/in.h> 40 #include <netinet/tcp.h> 38 41 #include <arpa/inet.h> /* inet_addr */ 39 42 #include <netdb.h> … … 208 211 #else 209 212 return 0; 213 #endif 214 } 215 216 int 217 tr_netSetCongestionControl( int s, const char *algorithm ) 218 { 219 #ifdef TCP_CONGESTION 220 return setsockopt( s, IPPROTO_TCP, TCP_CONGESTION, 221 algorithm, strlen(algorithm) + 1 ); 222 #else 223 errno = ENOSYS; 224 return -1; 210 225 #endif 211 226 }
Note: See TracChangeset
for help on using the changeset viewer.