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