示例#1
0
 internal ServerStream(
     LoopContext loop,
     uv_handle_type handleType,
     params object[] args)
     : base(loop, handleType, args)
 {
 }
示例#2
0
 internal WorkHandle(
     LoopContext loop,
     uv_handle_type handleType,
     params object[] args)
     : base(loop, handleType, args)
 {
 }
示例#3
0
文件: Udp.cs 项目: wazazhang/NetUV
        internal Udp(LoopContext loop, PooledByteBufferAllocator allocator)
            : base(loop, uv_handle_type.UV_UDP)
        {
            Contract.Requires(allocator != null);

            this.allocator   = allocator;
            this.pendingRead = new PendingRead();
        }
示例#4
0
 internal StreamHandle(
     LoopContext loop,
     uv_handle_type handleType,
     params object[] args)
     : base(loop, handleType, args)
 {
     this.pipeline = new Pipeline(this);
 }
示例#5
0
文件: Udp.cs 项目: 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();
        }
示例#6
0
文件: Async.cs 项目: wazazhang/NetUV
        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;
        }
示例#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;
        }
示例#8
0
文件: Udp.cs 项目: doruu12/NetUV
 internal Udp(LoopContext loop)
     : this(loop, ByteBufferAllocator.Pooled)
 {
 }
示例#9
0
 internal Pipe(LoopContext loop, bool ipc = false)
     : base(loop, uv_handle_type.UV_NAMED_PIPE, ipc)
 {
     this.ipc = ipc;
 }
示例#10
0
文件: Signal.cs 项目: wazazhang/NetUV
 internal Signal(LoopContext loop)
     : base(loop, uv_handle_type.UV_SIGNAL)
 {
 }
示例#11
0
 internal FSPoll(LoopContext loop)
     : base(loop, uv_handle_type.UV_FS_POLL)
 {
 }
示例#12
0
文件: Tty.cs 项目: wazazhang/NetUV
 internal Tty(LoopContext loop, TtyType ttyType)
     : base(loop, uv_handle_type.UV_TTY, ttyType)
 {
     this.ttyType = ttyType;
 }
示例#13
0
文件: Udp.cs 项目: wazazhang/NetUV
 internal Udp(LoopContext loop)
     : this(loop, PooledByteBufferAllocator.Default)
 {
 }
示例#14
0
 internal Poll(LoopContext loop, int fd)
     : base(loop, uv_handle_type.UV_POLL, new object[] { fd })
 {
 }
示例#15
0
 internal FSEvent(LoopContext loop)
     : base(loop, uv_handle_type.UV_FS_EVENT)
 {
 }
示例#16
0
 internal Tcp(LoopContext loop)
     : base(loop, uv_handle_type.UV_TCP)
 {
 }
示例#17
0
 internal Prepare(LoopContext loop)
     : base(loop, uv_handle_type.UV_PREPARE)
 {
 }
示例#18
0
文件: Check.cs 项目: PlumpMath/NetUV
 internal Check(LoopContext loop)
     : base(loop, uv_handle_type.UV_CHECK)
 {
 }
示例#19
0
 internal Timer(LoopContext loop)
     : base(loop, uv_handle_type.UV_TIMER)
 {
 }
示例#20
0
文件: Idle.cs 项目: wazazhang/NetUV
 internal Idle(LoopContext loop)
     : base(loop, uv_handle_type.UV_IDLE)
 {
 }
示例#21
0
 internal Poll(LoopContext loop, IntPtr handle)
     : base(loop, uv_handle_type.UV_POLL, new object[] { handle })
 {
 }
示例#22
0
 public Loop()
 {
     this.handle = new LoopContext();
 }