Пример #1
0
 public void Accept(UvStreamHandle handle)
 {
     _uv.accept(this, handle);
 }
Пример #2
0
 public Uv.uv_buf_t AllocCallback(UvStreamHandle dispatchPipe, int suggestedSize)
 {
     return(dispatchPipe.Libuv.buf_init(_bufPtr + _bytesRead, _bufferLength - _bytesRead));
 }
Пример #3
0
 protected virtual void DispatchConnection(UvStreamHandle socket)
 {
     // REVIEW: This task should be tracked by the server for graceful shutdown
     // Today it's handled specifically for http but not for aribitrary middleware
     _ = HandleConnectionAsync(socket);
 }