Ignore:
Timestamp:
2011-06-22T01:34:53Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d7e82c1, cac458f
Parents:
72ec8cc (diff), bf172825 (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 mainline changes.

File:
1 edited

Legend:

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

    r72ec8cc rf1fae414  
    6565#define SOCKET_MAX_ACCEPTED_SIZE        0
    6666
    67 /** Default timeout for connections in microseconds. */
    68 #define SOCKET_CONNECT_TIMEOUT  (1 * 1000 * 1000)
    69 
    7067/**
    7168 * Maximum number of random attempts to find a new socket identifier before
     
    203200 * @param[in] iid       The initial message identifier.
    204201 * @param[in] icall     The initial message call structure.
    205  */
    206 static void socket_connection(ipc_callid_t iid, ipc_call_t * icall)
     202 * @param[in] arg       Local argument.
     203 */
     204static void socket_connection(ipc_callid_t iid, ipc_call_t * icall, void *arg)
    207205{
    208206        ipc_callid_t callid;
     
    288286 * @return              The TCP module phone.
    289287 * @return              Other error codes as defined for the
    290  *                      bind_service_timeout() function.
     288 *                      bind_service() function.
    291289 */
    292290static int socket_get_tcp_phone(void)
    293291{
    294292        if (socket_globals.tcp_phone < 0) {
    295                 socket_globals.tcp_phone = bind_service_timeout(SERVICE_TCP,
    296                     0, 0, SERVICE_TCP, socket_connection,
    297                     SOCKET_CONNECT_TIMEOUT);
     293                socket_globals.tcp_phone = bind_service(SERVICE_TCP,
     294                    0, 0, SERVICE_TCP, socket_connection);
    298295        }
    299296
     
    307304 * @return              The UDP module phone.
    308305 * @return              Other error codes as defined for the
    309  *                      bind_service_timeout() function.
     306 *                      bind_service() function.
    310307 */
    311308static int socket_get_udp_phone(void)
    312309{
    313310        if (socket_globals.udp_phone < 0) {
    314                 socket_globals.udp_phone = bind_service_timeout(SERVICE_UDP,
    315                     0, 0, SERVICE_UDP, socket_connection,
    316                     SOCKET_CONNECT_TIMEOUT);
     311                socket_globals.udp_phone = bind_service(SERVICE_UDP,
     312                    0, 0, SERVICE_UDP, socket_connection);
    317313        }
    318314
     
    396392 * @return              Other error codes as defined for the NET_SOCKET message.
    397393 * @return              Other error codes as defined for the
    398  *                      bind_service_timeout() function.
     394 *                      bind_service() function.
    399395 */
    400396int socket(int domain, int type, int protocol)
Note: See TracChangeset for help on using the changeset viewer.