Example #1
0
 internal ServerStream(
     LoopContext loop,
     uv_handle_type handleType,
     params object[] args)
     : base(loop, handleType, args)
 {
 }
Example #2
0
 internal WorkHandle(
     LoopContext loop,
     uv_handle_type handleType,
     params object[] args)
     : base(loop, handleType, args)
 {
 }
Example #3
0
        internal Udp(LoopContext loop, PooledByteBufferAllocator allocator)
            : base(loop, uv_handle_type.UV_UDP)
        {
            Contract.Requires(allocator != null);

            this.allocator   = allocator;
            this.pendingRead = new PendingRead();
        }
Example #4
0
 internal StreamHandle(
     LoopContext loop,
     uv_handle_type handleType,
     params object[] args)
     : base(loop, handleType, args)
 {
     this.pipeline = new Pipeline(this);
 }
Example #5
0
File: Udp.cs Project: doruu12/NetUV
        internal Udp(LoopContext loop, ByteBufferAllocator allocator)
            : base(loop, uv_handle_type.UV_UDP)
        {
            Contract.Requires(allocator != null);

            this.allocator   = allocator;
            this.bufferQueue = new BufferQueue();
        }
Example #6
0
        internal Async(LoopContext loop, Action <Async> callback)
            : base(loop, uv_handle_type.UV_ASYNC)
        {
            Contract.Requires(callback != null);

            this.Callback       = state => callback.Invoke((Async)state);
            this.gate           = new Gate();
            this.closeScheduled = false;
        }
Example #7
0
        internal ScheduleHandle(
            LoopContext loop,
            uv_handle_type handleType,
            object[] args = null)
        {
            Contract.Requires(loop != null);

            HandleContext initialHandle = NativeMethods.Initialize(loop.Handle, handleType, this, args);

            Debug.Assert(initialHandle != null);

            this.handle     = initialHandle;
            this.HandleType = handleType;
        }
Example #8
0
File: Udp.cs Project: doruu12/NetUV
 internal Udp(LoopContext loop)
     : this(loop, ByteBufferAllocator.Pooled)
 {
 }
Example #9
0
 internal Pipe(LoopContext loop, bool ipc = false)
     : base(loop, uv_handle_type.UV_NAMED_PIPE, ipc)
 {
     this.ipc = ipc;
 }
Example #10
0
 internal Signal(LoopContext loop)
     : base(loop, uv_handle_type.UV_SIGNAL)
 {
 }
Example #11
0
 internal FSPoll(LoopContext loop)
     : base(loop, uv_handle_type.UV_FS_POLL)
 {
 }
Example #12
0
 internal Tty(LoopContext loop, TtyType ttyType)
     : base(loop, uv_handle_type.UV_TTY, ttyType)
 {
     this.ttyType = ttyType;
 }
Example #13
0
 internal Udp(LoopContext loop)
     : this(loop, PooledByteBufferAllocator.Default)
 {
 }
Example #14
0
 internal Poll(LoopContext loop, int fd)
     : base(loop, uv_handle_type.UV_POLL, new object[] { fd })
 {
 }
Example #15
0
 internal FSEvent(LoopContext loop)
     : base(loop, uv_handle_type.UV_FS_EVENT)
 {
 }
Example #16
0
 internal Tcp(LoopContext loop)
     : base(loop, uv_handle_type.UV_TCP)
 {
 }
Example #17
0
 internal Prepare(LoopContext loop)
     : base(loop, uv_handle_type.UV_PREPARE)
 {
 }
Example #18
0
 internal Check(LoopContext loop)
     : base(loop, uv_handle_type.UV_CHECK)
 {
 }
Example #19
0
 internal Timer(LoopContext loop)
     : base(loop, uv_handle_type.UV_TIMER)
 {
 }
Example #20
0
 internal Idle(LoopContext loop)
     : base(loop, uv_handle_type.UV_IDLE)
 {
 }
Example #21
0
 internal Poll(LoopContext loop, IntPtr handle)
     : base(loop, uv_handle_type.UV_POLL, new object[] { handle })
 {
 }
Example #22
0
 public Loop()
 {
     this.handle = new LoopContext();
 }