rustbus icon indicating copy to clipboard operation
rustbus copied to clipboard

Add a way to get the file descriptors for use with epoll

Open i509VCB opened this issue 4 years ago • 1 comments

At the moment I don't see a way to take DuplexConn or the higher level RpcConn and get the file descriptor(s) that I can use in epoll for not blocking or needing to poll like crazy.

i509VCB avatar Nov 12 '21 04:11 i509VCB

AsRawFd is implemented for DuplexConn which gives the receiving RawFd. If your using RpcConn, you can use RpcConn::conn() to get the underlying DuplexConn first.

cmaves avatar Nov 12 '21 07:11 cmaves