src/sock.h
changeset 4 a3ca0f97a075
parent 3 cc94ae754e2a
child 5 a09a0797f6f0
equal deleted inserted replaced
3:cc94ae754e2a 4:a3ca0f97a075
    13 struct sock_stream;
    13 struct sock_stream;
    14 
    14 
    15 /*
    15 /*
    16  * Initialize the socket module's global state. Call this before calling any other sock_* functions.
    16  * Initialize the socket module's global state. Call this before calling any other sock_* functions.
    17  */
    17  */
    18 err_t sock_init (void);
    18 err_t sock_init (struct error_info *err);
    19 
    19 
    20 /*
    20 /*
    21  * A simple blocking TCP connect to the given host/service, using getaddrinfo. The connected socket is returned via
    21  * A simple blocking TCP connect to the given host/service, using getaddrinfo. The connected socket is returned via
    22  * *sock_ptr. In case of errors, additional error information is stored in *err
    22  * *sock_ptr. In case of errors, additional error information is stored in *err
    23  *
    23  *