Beispiel #1
0
 public static extern int uv_tcp_init(UVLoopHandle loop, UVTCPHandle handle);
Beispiel #2
0
 public static extern int uv_walk(UVLoopHandle loop, uv_walk_cb walk_cb, IntPtr arg);
Beispiel #3
0
 public static extern void uv_stop(UVLoopHandle handle);
Beispiel #4
0
 public static extern int uv_idle_init(UVLoopHandle loop, UVIdleHandle handle);
Beispiel #5
0
 public static extern int uv_loop_init(UVLoopHandle handle);
Beispiel #6
0
 public static extern int uv_run(UVLoopHandle handle, int mode);
Beispiel #7
0
 public static void walk(UVLoopHandle loop, uv_walk_cb walk_cb, IntPtr arg)
 {
     loop.Validate();
     uv_walk(loop, walk_cb, arg);
 }
Beispiel #8
0
 public static void loop_init(UVLoopHandle handle)
 {
     ThrowIfErrored(uv_loop_init(handle));
 }
Beispiel #9
0
 public static void idle_init(UVLoopHandle loop, UVIdleHandle handle)
 {
     loop.Validate();
     handle.Validate();
     ThrowIfErrored(uv_idle_init(loop, handle));
 }
Beispiel #10
0
 public static void tcp_init(UVLoopHandle loop, UVTCPHandle handle)
 {
     loop.Validate();
     handle.Validate();
     ThrowIfErrored(uv_tcp_init(loop, handle));
 }
Beispiel #11
0
 public static void stop(UVLoopHandle handle)
 {
     handle.Validate();
     uv_stop(handle);
 }
Beispiel #12
0
 public static void run(UVLoopHandle handle, int mode)
 {
     handle.Validate();
     ThrowIfErrored(uv_run(handle, mode));
 }
Beispiel #13
0
 public static void loop_close(UVLoopHandle handle)
 {
     handle.Validate(closed: true);
     ThrowIfErrored(uv_loop_close(handle.InternalGetHandle()));
 }
Beispiel #14
0
 unsafe public static extern long uv_now(UVLoopHandle loop);
Beispiel #15
0
 public unsafe static long now(UVLoopHandle loop)
 {
     loop.Validate();
     return(uv_now(loop));
 }
Beispiel #16
0
 public UVIdleHandle(UVLoopHandle loop)
 {
     this.CreateHandle(UVHandleType.IDLE);
     UVIntrop.idle_init(loop, this);
 }
Beispiel #17
0
 public UVTCPHandle(UVLoopHandle loop)
 {
     CreateHandle(UVHandleType.TCP);
     UVIntrop.tcp_init(loop, this);
 }