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