static extern int uv_queue_work(IntPtr loopHandle, IntPtr handle, uv_work_cb work_cb, uv_watcher_cb after_work_cb);
internal static extern int uv_idle_start(IntPtr idle, uv_watcher_cb cb);
internal static extern int uv_prepare_start(IntPtr prepare, uv_watcher_cb cb);
internal static extern int uv_tcp_connect(IntPtr req, IntPtr handle, ref sockaddr sockaddr, uv_watcher_cb connect_cb);
internal static extern int uv_timer_start(IntPtr timer, uv_watcher_cb cb, double after, double repeat);
internal static extern int uv_check_start(IntPtr check, uv_watcher_cb cb);
internal static extern int uv_timer_start(IntPtr timer, uv_watcher_cb cb, double after, double repeat);
internal static extern int uv_prepare_start(IntPtr prepare, uv_watcher_cb cb); // uv_prepare_t*
internal static extern int uv_idle_start(IntPtr idle, uv_watcher_cb cb); // uv_idle_t*
// Write data to stream. Buffers are written in order. // Note: The memory pointed to by the buffers must remain valid until the callback gets called. internal static unsafe void WriteStream(IntPtr requestHandle, IntPtr streamHandle, uv_buf_t *bufs, int size, uv_watcher_cb write_callback) { if (requestHandle != IntPtr.Zero && streamHandle != IntPtr.Zero) { int result = uv_write(requestHandle, streamHandle, bufs, size, write_callback); ThrowIfError(result); } else { throw new ArgumentException("requestHandle and streamHandle can't be null!"); } }
static extern unsafe int uv_write(IntPtr req, IntPtr handle, uv_buf_t *bufs, int nbufs, uv_watcher_cb cb);
internal static extern void uv_pipe_connect(IntPtr req, IntPtr handle, string name, uv_watcher_cb connect_cb);
static extern int uv_udp_send(IntPtr req, IntPtr handle, uv_buf_t[] bufs, int nbufs, ref sockaddr addr, uv_watcher_cb cb);
static extern int uv_signal_start(IntPtr handle, uv_watcher_cb cb, int signum);
static extern int uv_listen(IntPtr handle, int backlog, uv_watcher_cb connection_cb);
internal static extern int uv_check_start(IntPtr check, uv_watcher_cb cb); // uv_check_t*
static extern int uv_write2(IntPtr req, IntPtr handle, uv_buf_t[] bufs, int nbufs, IntPtr sendHandle, uv_watcher_cb cb);
internal static extern int uv_write(IntPtr req, IntPtr handle, ref uv_buf_t bufs, int nbufs, uv_watcher_cb cb);
static extern int uv_shutdown(IntPtr requestHandle, IntPtr streamHandle, uv_watcher_cb callback);
private static unsafe extern int uv_write2(IntPtr req, IntPtr handle, uv_buf_t *bufs, int nbufs, IntPtr sendHandle, uv_watcher_cb cb);