first, we should thanks Jxck write this libuv example . but there's some mistake in the example . In order to let the newbies learn libuv better and easy , I fixed these bugs . this example is based on libuv version 0.1.xx . and I use libuv version 0.1.19 to fixed these bugs .
the main mistake is the callback result , all the error code where lower than zero . not only -1. so I fixed these bugs . and I translate the commit to english .