public Udp( ILibuvLogger logger, EventLooper looper, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger) { this.Initialize(looper, queueCloseHandle); }
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); }
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); }
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); }
public Async(ILibuvLogger logger, EventLooper looper, Action callback, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger) { this.Initialize(looper, callback, queueCloseHandle); }
internal static extern long uv_now(EventLooper loop);
internal static extern void uv_stop(EventLooper handle);
internal static extern int uv_run(EventLooper handle, int mode);
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);
internal static extern int uv_check_init(EventLooper looper, Check handle);
internal static extern int uv_idle_init(EventLooper looper, Idle handle);
internal static extern int uv_pipe_init(EventLooper looper, NamedPipe handle, int ipc);
public NamedPipe(ILibuvLogger logger, EventLooper looper, bool ipc, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger) { this.Initialize(looper, ipc, queueCloseHandle); }
internal static extern int uv_async_init(EventLooper looper, Async handle, uv_async_cb callback);
internal static extern int uv_prepare_init(EventLooper looper, Prepare handle);
internal static extern int uv_signal_init(EventLooper looper, Signal signal);
internal static extern int uv_loop_init(EventLooper handle);
internal static extern int uv_loop_close(EventLooper handle);
internal static extern int uv_udp_init(EventLooper looper, Udp handle);