Пример #1
0
 public Udp(
     ILibuvLogger logger,
     EventLooper looper,
     Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger)
 {
     this.Initialize(looper, queueCloseHandle);
 }
Пример #2
0
 public WriteRequest(ILibuvLogger logger, EventLooper looper) : base(logger)
 {
     this.AllocateMemory(
         looper.ThreadId,
         Request.NativeMethods.uv_req_size(RequestType.WRITE)
         );
     this._buffersPointer = IntPtr.Zero;
     this._writeBuffers   = new List <BufferPin>();
 }
Пример #3
0
 protected Stream(ILibuvLogger logger) : base(logger)
 {
 }
Пример #4
0
 public Async(ILibuvLogger logger, EventLooper looper, Action callback, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger)
 {
     this.Initialize(looper, callback, queueCloseHandle);
 }
Пример #5
0
 protected Handle(ILibuvLogger logger, GCHandleType handleType = GCHandleType.Weak) : base(IntPtr.Zero, true)
 {
     this._handleType = handleType;
     this._logger     = logger;
 }
Пример #6
0
 public EventLooper(ILibuvLogger logger) : base(logger)
 {
     this.Initialize();
 }
Пример #7
0
        public ConnectRequest(ILibuvLogger logger, EventLooper looper) : base(logger)
        {
            int requestSize = Request.NativeMethods.uv_req_size(RequestType.CONNECT);

            this.AllocateMemory(looper.ThreadId, requestSize);
        }
Пример #8
0
 protected Request(ILibuvLogger logger) : base(logger)
 {
 }
Пример #9
0
 public NamedPipe(ILibuvLogger logger, EventLooper looper, bool ipc, Action <Action <IntPtr>, IntPtr> queueCloseHandle) : base(logger)
 {
     this.Initialize(looper, ipc, queueCloseHandle);
 }