You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
to integrate new lib uv (new error checking mechannizm) #21
Previously you had to call uv_last_error to get the last error code, if any. Now, uv_tcp_connect returns the error directly, as an int. So what about the handling of "status" in the callback? I can't see how to do the right thing here.
Activity
divanvisagie commentedon Aug 22, 2013
TODO: look into updating libuv dependency version
sebjameswml commentedon Nov 7, 2013
I've been looking at this. I think the error class gets simpler because there are fewer types to handle.
I've drafted out error.h as:
But I don't know how to modify the calling code, such as tcp.h, fs.h and so on. Any hints from the original coder?
sebjameswml commentedon Nov 7, 2013
For example, here's a call to uv_tcp_connect from tcp.h:
Previously you had to call uv_last_error to get the last error code, if any. Now, uv_tcp_connect returns the error directly, as an int. So what about the handling of "status" in the callback? I can't see how to do the right thing here.