Changeset 1a0fb3f8 in mainline for uspace/srv/net/modules.h


Ignore:
Timestamp:
2010-01-04T22:47:30Z (14 years ago)
Author:
Lukas Mejdrech <lukasmejdrech@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ede63e4
Parents:
b648ae4
Message:

+ icmp and libsocket timeouting connecting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/modules.h

    rb648ae4 r1a0fb3f8  
    4343#include <ipc/services.h>
    4444
     45#include <sys/time.h>
     46
    4547/** Converts the data length between different types.
    4648 *      @param[in] type_from The source type.
     
    6870int connect_to_service( services_t need );
    6971
     72/** Connects to the needed module.
     73 *  @param[in] need The needed module service.
     74 *  @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0).
     75 *  @returns The phone of the needed service.
     76 *  @returns ETIMEOUT if the connection timeouted.
     77 */
     78int connect_to_service_timeout( services_t need, suseconds_t timeout );
     79
    7080/** Creates bidirectional connection with the needed module service and registers the message receiver.
    7181 *  @param[in] need The needed module service.
     
    7888 */
    7989int     bind_service( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver );
     90
     91/** Creates bidirectional connection with the needed module service and registers the message receiver.
     92 *  @param[in] need The needed module service.
     93 *  @param[in] arg1 The first parameter.
     94 *  @param[in] arg2 The second parameter.
     95 *  @param[in] arg3 The third parameter.
     96 *  @param[in] client_receiver The message receiver.
     97 *  @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0).
     98 *  @returns The phone of the needed service.
     99 *  @returns ETIMEOUT if the connection timeouted.
     100 *  @returns Other error codes as defined for the ipc_connect_to_me() function.
     101 */
     102int     bind_service_timeout( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver, suseconds_t timeout );
    80103
    81104/** Answers the call.
Note: See TracChangeset for help on using the changeset viewer.