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