Ignore:
Timestamp:
2010-01-04T22:47:30Z (15 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/include/icmp_common.h

    rb648ae4 r1a0fb3f8  
    4040#include <ipc/services.h>
    4141
     42#include <sys/time.h>
     43
     44/** Default timeout for incoming connections in microseconds.
     45 */
     46#define ICMP_CONNECT_TIMEOUT    ( 1 * 1000 * 1000 )
     47
    4248/** Connects to the ICMP module.
    4349 *  @param service The ICMP module service. Ignored parameter.
     50 *  @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0).
    4451 *  @returns The ICMP module phone on success.
    4552 *  @returns The ICMP socket identifier if called by the bundle module.
     53 *  @returns ETIMEOUT if the connection timeouted.
    4654 */
    47 int     icmp_connect_module( services_t service );
     55int     icmp_connect_module( services_t service, suseconds_t timeout );
    4856
    4957#endif
Note: See TracChangeset for help on using the changeset viewer.