Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 4, 2013
  1. @bnoordhuis

    include: merge uv_tcp_connect and uv_tcp_connect6

    bnoordhuis authored
    Merge uv_tcp_connect6() into uv_tcp_connect().  uv_tcp_connect() now
    takes a const struct sockaddr*.
Commits on Sep 1, 2013
  1. @bnoordhuis

    include: uv_tcp_connect{6} now takes sockaddr_in*

    bnoordhuis authored
    Passing or returning structs as values makes life hard for people that
    work with libuv through a foreign function interface. Switch to a
    pointer-based approach.
    
    Fixes #684.
Commits on Jul 7, 2013
  1. @bnoordhuis

    unix, windows: return error codes directly

    bnoordhuis authored
    This commit changes the libuv API to return error codes directly rather
    than storing them in a loop-global field.
    
    A code snippet like this one:
    
        if (uv_foo(loop) < 0) {
          uv_err_t err = uv_last_error(loop);
          fprintf(stderr, "%s\n", uv_strerror(err));
        }
    
    Should be rewritten like this:
    
        int err = uv_foo(loop);
        if (err < 0)
          fprintf(stderr, "%s\n", uv_strerror(err));
    
    The rationale for this change is that it should make creating bindings
    for other languages a lot easier: dealing with struct return values is
    painful with most FFIs and often downright buggy.
Commits on Jan 16, 2013
  1. @bnoordhuis

    unix, windows: rename uv_run2 to uv_run

    bnoordhuis authored
    This changes the prototype of uv_run() from:
    
      int uv_run(uv_loop_t* loop);
    
    To:
    
      int uv_run(uv_loop_t* loop, uv_run_mode mode);
    
    Where `mode` is UV_RUN_DEFAULT, UV_RUN_ONCE or UV_RUN_NOWAIT.
    
    Fixes #683.
Something went wrong with that request. Please try again.