Ignore:
Timestamp:
2011-06-22T01:59:39Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
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.
Message:

Merge libposix changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/net/socket_client.c

    r79506d6 rcac458f  
    6464/** Maximum waiting sockets queue size. */
    6565#define SOCKET_MAX_ACCEPTED_SIZE        0
    66 
    67 /** Default timeout for connections in microseconds. */
    68 #define SOCKET_CONNECT_TIMEOUT  (1 * 1000 * 1000)
    6966
    7067/**
     
    289286 * @return              The TCP module phone.
    290287 * @return              Other error codes as defined for the
    291  *                      bind_service_timeout() function.
     288 *                      bind_service() function.
    292289 */
    293290static int socket_get_tcp_phone(void)
    294291{
    295292        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);
    299295        }
    300296
     
    308304 * @return              The UDP module phone.
    309305 * @return              Other error codes as defined for the
    310  *                      bind_service_timeout() function.
     306 *                      bind_service() function.
    311307 */
    312308static int socket_get_udp_phone(void)
    313309{
    314310        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);
    318313        }
    319314
     
    397392 * @return              Other error codes as defined for the NET_SOCKET message.
    398393 * @return              Other error codes as defined for the
    399  *                      bind_service_timeout() function.
     394 *                      bind_service() function.
    400395 */
    401396int socket(int domain, int type, int protocol)
Note: See TracChangeset for help on using the changeset viewer.