I am working on a MQTT client app in C for an Embedded ARM system that must send message base on GPIO change. To do this, I have try to launch a pthr ...
I am working on a MQTT client app in C for an Embedded ARM system that must send message base on GPIO change. To do this, I have try to launch a pthr ...
Here is a minimal example code: The code creates socket that listens for the connections and registers the socket with an epoll set. Last lines wai ...
If the bits of epoll_event.events field is zeroed, does it disables the event? The kqueue has EV_DISABLE, that EV_DISABLE Disable the event so ke ...
I am using a combination of os.File.SetReadDeadline and os.File.ReadFull. But even if using SetReadDeadline, the deadline I have set is completely ign ...
OpenLDAP as a server can handle N number of requests because it supports epoll (there is no hard limit). However, when openldap behaves as a client (a ...
I have a C++ client binary that uses epoll() to block on various OS descriptors - for file I/O, socket I/O, OS timers; and now it also needs to be a g ...
I have a non-blocking socket to send data to. When sending data to a socket in non-blocking mode, we can get EAGAIN or EWOULDBLOCK if there is not eno ...
I have func1 that add event: c++ but when i use epoll_wait int func2, struct epoll_event only get half pointer address: stdout info: ...
In Linux, one can wait on any FD using select, poll or epoll. It is also possible to wait for child-processes to change state using wait, waitpid or w ...
I'm writing a library which will use sd_bus under the hood. My goals are Allow integration into any existing main loop (don't force a choice on cl ...
How does the following execution possible: For some reason fcntl cannot set fd to non-blocking and does not signal about it. And, as expected, the ...
I am learning socket programming. I have built a client server program, where each client is handled by an individual thread in server program. But af ...
The question is straightforward. The shutdown(..., SHUT_RD) was called on the socket after read has returned zero. The epoll_wait keeps sending me EPO ...
I am trying to port a program from C to Go, so using a lot of stuff from the syscall package is required. I am trying to use https://pkg.go.dev/sysca ...
The man page for epoll_ctl() gives this signature: Should the epoll_event parameter be saved until we are finished all the epoll_wait() processing? ...
I have a listener socket, every new connection I get I add it to epoll like this: When new data is received, epoll signal 'EPOLLIN' event - as expe ...
I'm currently managing a server that can serve at most MAX_CLIENTS clients concurrently. This is the code I've written so far: Everything is worki ...
I have a working code with performs asynchronous DNS resolution with c-ares library calls. The program uses select to monitor file descriptors up to a ...
I have a list of millions of IP addresses of web servers. I want to check they are up and running by doing a non blocking connect to each of the serve ...
Provided that: I have created an epoll instance epfd by epoll_create, and registered many regular file descriptors by EPOLL_CTL_ADD. I want to c ...