56 references to NativeTls
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (56)
ConnectionIoState.cs (2)
180events |= NativeTls.EPOLLIN; 185events |= NativeTls.EPOLLOUT;
TlsEventPump.cs (41)
48private const uint DefaultEpollInterest = NativeTls.EPOLLIN | NativeTls.EPOLLRDHUP; 174_epollFd = NativeTls.epoll_create1(NativeTls.EPOLL_CLOEXEC); 236Events = NativeTls.EPOLLIN | NativeTls.EPOLLEXCLUSIVE, 240int result = NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_ADD, listenFd, ref ev); 273=> NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_DEL, fd, IntPtr.Zero); 289if (NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_MOD, fd, ref ev) < 0) 330if ((events & NativeTls.EPOLLIN) != 0) 332events |= NativeTls.EPOLLRDHUP; 341if (NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_MOD, fd, ref ev) < 0) 376if (NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_DEL, listenFd, IntPtr.Zero) < 0) 385var events = new NativeTls.EpollEventBuffer(MaxEvents); 542bool errorOrHangup = (mask & (NativeTls.EPOLLERR | NativeTls.EPOLLHUP)) != 0; 545mask |= NativeTls.EPOLLIN | NativeTls.EPOLLOUT; 553if ((mask & NativeTls.EPOLLIN) != 0) 558if ((mask & NativeTls.EPOLLOUT) != 0) 585if ((mask & NativeTls.EPOLLRDHUP) != 0) 587if ((mask & NativeTls.EPOLLIN) == 0) 625if (errno is NativeTls.EAGAIN) 630if (errno is NativeTls.EINTR) 674int fd = NativeTls.accept4(_listenFd, IntPtr.Zero, IntPtr.Zero, NativeTls.SOCK_NONBLOCK | NativeTls.SOCK_CLOEXEC); 1072if (NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_ADD, fd, ref ev) < 0) 1097TlsOperationStatus.DestinationTooSmall => DefaultEpollInterest | NativeTls.EPOLLOUT, 1135NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_DEL, fd, IntPtr.Zero); 1182NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_DEL, fd, IntPtr.Zero); 1394if (NativeTls.close(_wakeupFd) < 0) 1399if (NativeTls.close(_epollFd) < 0)
TlsEventPump.UserCallbacks.cs (13)
64int wakeupFd = NativeTls.eventfd(0, NativeTls.EFD_NONBLOCK | NativeTls.EFD_CLOEXEC); 68NativeTls.close(_epollFd); 74Events = NativeTls.EPOLLIN, 78if (NativeTls.epoll_ctl(_epollFd, NativeTls.EPOLL_CTL_ADD, wakeupFd, ref wakeupEvent) < 0) 81NativeTls.close(wakeupFd); 82NativeTls.close(_epollFd); 177if (NativeTls.write(_wakeupFd, ref value, sizeof(long)) < 0) 201nint read = NativeTls.read(_wakeupFd, ref value, sizeof(long)); 214if (errno is NativeTls.EAGAIN or NativeTls.EINTR)