Changeset cac458f in mainline for uspace/lib/c/generic/net/socket_client.c
- Timestamp:
- 2011-06-22T01:59:39Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41e2118
- Parents:
- 79506d6 (diff), f1fae414 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/net/socket_client.c
r79506d6 rcac458f 64 64 /** Maximum waiting sockets queue size. */ 65 65 #define SOCKET_MAX_ACCEPTED_SIZE 0 66 67 /** Default timeout for connections in microseconds. */68 #define SOCKET_CONNECT_TIMEOUT (1 * 1000 * 1000)69 66 70 67 /** … … 289 286 * @return The TCP module phone. 290 287 * @return Other error codes as defined for the 291 * bind_service _timeout() function.288 * bind_service() function. 292 289 */ 293 290 static int socket_get_tcp_phone(void) 294 291 { 295 292 if (socket_globals.tcp_phone < 0) { 296 socket_globals.tcp_phone = bind_service_timeout(SERVICE_TCP, 297 0, 0, SERVICE_TCP, socket_connection, 298 SOCKET_CONNECT_TIMEOUT); 293 socket_globals.tcp_phone = bind_service(SERVICE_TCP, 294 0, 0, SERVICE_TCP, socket_connection); 299 295 } 300 296 … … 308 304 * @return The UDP module phone. 309 305 * @return Other error codes as defined for the 310 * bind_service _timeout() function.306 * bind_service() function. 311 307 */ 312 308 static int socket_get_udp_phone(void) 313 309 { 314 310 if (socket_globals.udp_phone < 0) { 315 socket_globals.udp_phone = bind_service_timeout(SERVICE_UDP, 316 0, 0, SERVICE_UDP, socket_connection, 317 SOCKET_CONNECT_TIMEOUT); 311 socket_globals.udp_phone = bind_service(SERVICE_UDP, 312 0, 0, SERVICE_UDP, socket_connection); 318 313 } 319 314 … … 397 392 * @return Other error codes as defined for the NET_SOCKET message. 398 393 * @return Other error codes as defined for the 399 * bind_service _timeout() function.394 * bind_service() function. 400 395 */ 401 396 int socket(int domain, int type, int protocol)
Note:
See TracChangeset
for help on using the changeset viewer.