Exemple #1
0
 public Udp(
     ILibuvLogger logger,
     EventLooper looper,
     Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger)
 {
     this.Initialize(looper, queueCloseHandle);
 }
Exemple #2
0
        private void Initialize(EventLooper looper, bool ipc, Action <Action <IntPtr>, IntPtr> queueCloseHandle)
        {
            this.AllocateMemory(
                looper.ThreadId,
                Handle.NativeMethods.uv_handle_size(HandleType.NamedPipe),
                queueCloseHandle
                );

            NativeMethods.uv_pipe_init(looper, this, ipc ? 1 : 0);
        }
Exemple #3
0
        private void Initialize(EventLooper looper, uint flags, Action <Action <IntPtr>, IntPtr> queueCloseHandle)
        {
            this.AllocateMemory(
                looper.ThreadId,
                Handle.NativeMethods.uv_handle_size(HandleType.UDP),
                queueCloseHandle
                );

            NativeMethods.uv_udp_init_ex(looper, this, flags);
        }
        private void Initialize(EventLooper looper, Action <Action <IntPtr>, IntPtr> queueCloseHandle)
        {
            this.AllocateMemory(
                looper.ThreadId,
                Handle.NativeMethods.uv_handle_size(HandleType.FileSystemEvent),
                queueCloseHandle
                );

            NativeMethods.uv_fs_event_init(looper, this);
        }
Exemple #5
0
        private void Initialize(
            EventLooper looper,
            Action callback,
            Action <Action <IntPtr>, IntPtr> queueCloseHandle)
        {
            this.AllocateMemory(
                looper.ThreadId,
                Handle.NativeMethods.uv_handle_size(HandleType.Async),
                queueCloseHandle
                );

            this._callback = callback;

            NativeMethods.uv_async_init(looper, this, Async._asyncCallback);
        }
Exemple #6
0
 public Async(ILibuvLogger logger, EventLooper looper, Action callback, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger)
 {
     this.Initialize(looper, callback, queueCloseHandle);
 }
Exemple #7
0
 internal static extern long uv_now(EventLooper loop);
Exemple #8
0
 internal static extern void uv_stop(EventLooper handle);
Exemple #9
0
 internal static extern int uv_run(EventLooper handle, int mode);
Exemple #10
0
 internal static extern int uv_udp_init_ex(EventLooper looper, Udp handle, uint flags);
 internal static extern int uv_fs_event_init(EventLooper looper, FileSystemEvent fsEvent);
Exemple #12
0
 internal static extern int uv_check_init(EventLooper looper, Check handle);
Exemple #13
0
 internal static extern int uv_idle_init(EventLooper looper, Idle handle);
Exemple #14
0
 internal static extern int uv_pipe_init(EventLooper looper, NamedPipe handle, int ipc);
Exemple #15
0
 public NamedPipe(ILibuvLogger logger, EventLooper looper, bool ipc, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger)
 {
     this.Initialize(looper, ipc, queueCloseHandle);
 }
Exemple #16
0
 internal static extern int uv_async_init(EventLooper looper, Async handle, uv_async_cb callback);
Exemple #17
0
 internal static extern int uv_prepare_init(EventLooper looper, Prepare handle);
Exemple #18
0
 internal static extern int uv_signal_init(EventLooper looper, Signal signal);
Exemple #19
0
 internal static extern int uv_loop_init(EventLooper handle);
Exemple #20
0
 internal static extern int uv_loop_close(EventLooper handle);
Exemple #21
0
 internal static extern int uv_udp_init(EventLooper looper, Udp handle);