Comments (3)
sys/poll.h
#define POLLWRNORM 0x0100 /* Writing now will not block */
from cpp-mjpeg-streamer.
http://www.qnx.com/developers/docs/6.5.0SP1.update/index.html#com.qnx.doc.neutrino_lib_ref/p/poll.html#id9
POLLWRNORM
Equivalent to POLLOUT.
The significance and semantics of normal, priority, and high-priority data are file- and device-specific.
If the value of fd is less than 0, events is ignored, and revents is set to 0 in that entry on return from poll().
In each pollfd structure, poll() clears the revents member, except that where the application requested a report on a condition by setting one of the bits of events listed above, poll() sets the corresponding bit in revents if the requested condition is true. In addition, poll() sets the POLLHUP, POLLERR, and POLLNVAL flag in revents if the condition is true, even if the application didn't set the corresponding bit in events.
If none of the defined events occurs on any selected file descriptor, poll() waits at least timeout milliseconds for an event to occur on any of the selected file descriptors. If the value of timeout is 0, poll() returns immediately. If the value of timeout is -1, poll() blocks until a requested event occurs or until the call is interrupted.
The poll() function isn't affected by the O_NONBLOCK flag.
The poll() function reports regular files, terminal and pseudo-terminal devices, FIFOs, and pipes.
Regular files always poll TRUE for reading and writing.
A file descriptor for a socket that's listening for connections indicates that it's ready for reading, once connections are available. A file descriptor for a socket that connects asynchronously indicates that it's ready for writing, once a connection has been established.
from cpp-mjpeg-streamer.
After running a few days in ubuntu 20.04, It means we cannot write the encode image to the stream ...
from cpp-mjpeg-streamer.
Related Issues (19)
- Unused return Values warnings
- Stream freezes after some time HOT 1
- Can't access stream after some time
- how can I access the stream outside localhost?
- crash after a few hours HOT 2
- extract video stream from html to c++ HOT 1
- Improve Publisher
- Limit Queue in Publisher
- Feature Request HOT 2
- Frame Rate HOT 1
- Snapshot Feature HOT 1
- Two stream in same port HOT 1
- Expected boundary '--' not found HOT 1
- Video Flickering issue with usb 3.0 video capture card HOT 1
- Serve index.html HOT 3
- "revents != POLLWRNORM\n" (publisher.hpp/153 line) HOT 4
- Build failed in external directory
- Unable to build without unit tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpp-mjpeg-streamer.