示例#1
0
 static extern int uv_queue_work(IntPtr loopHandle, IntPtr handle, uv_work_cb work_cb, uv_watcher_cb after_work_cb);
示例#2
0
文件: Imports.cs 项目: gigi81/sharpuv
 internal static extern int uv_idle_start(IntPtr idle, uv_watcher_cb cb);
示例#3
0
文件: Imports.cs 项目: gigi81/sharpuv
 internal static extern int uv_prepare_start(IntPtr prepare, uv_watcher_cb cb);
示例#4
0
 internal static extern int uv_tcp_connect(IntPtr req, IntPtr handle, ref sockaddr sockaddr, uv_watcher_cb connect_cb);
示例#5
0
 internal static extern int uv_timer_start(IntPtr timer, uv_watcher_cb cb, double after, double repeat);
示例#6
0
 internal static extern int uv_check_start(IntPtr check, uv_watcher_cb cb);
示例#7
0
 internal static extern int uv_timer_start(IntPtr timer, uv_watcher_cb cb, double after, double repeat);
示例#8
0
 internal static extern int uv_prepare_start(IntPtr prepare, uv_watcher_cb cb);         // uv_prepare_t*
示例#9
0
 internal static extern int uv_idle_start(IntPtr idle, uv_watcher_cb cb);         // uv_idle_t*
示例#10
0
 // 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!");
     }
 }
示例#11
0
 static extern unsafe int uv_write(IntPtr req, IntPtr handle, uv_buf_t *bufs, int nbufs, uv_watcher_cb cb);
示例#12
0
 internal static extern void uv_pipe_connect(IntPtr req, IntPtr handle, string name, uv_watcher_cb connect_cb);
示例#13
0
 static extern int uv_udp_send(IntPtr req, IntPtr handle, uv_buf_t[] bufs, int nbufs, ref sockaddr addr, uv_watcher_cb cb);
示例#14
0
 static extern int uv_signal_start(IntPtr handle, uv_watcher_cb cb, int signum);
示例#15
0
 static extern int uv_listen(IntPtr handle, int backlog, uv_watcher_cb connection_cb);
示例#16
0
 internal static extern int uv_check_start(IntPtr check, uv_watcher_cb cb);         // uv_check_t*
示例#17
0
 static extern int uv_write2(IntPtr req, IntPtr handle, uv_buf_t[] bufs, int nbufs, IntPtr sendHandle, uv_watcher_cb cb);
示例#18
0
 internal static extern int uv_write(IntPtr req, IntPtr handle, ref uv_buf_t bufs, int nbufs, uv_watcher_cb cb);
示例#19
0
 static extern int uv_shutdown(IntPtr requestHandle, IntPtr streamHandle, uv_watcher_cb callback);
示例#20
0
 private static unsafe extern int uv_write2(IntPtr req, IntPtr handle, uv_buf_t *bufs, int nbufs, IntPtr sendHandle, uv_watcher_cb cb);