maandree / bus Goto Github PK
View Code? Open in Web Editor NEW[Feature complete] A simple daemonless system for broadcasting messages locally
Home Page: https://codeberg.org/maandree/bus
License: ISC License
[Feature complete] A simple daemonless system for broadcasting messages locally
Home Page: https://codeberg.org/maandree/bus
License: ISC License
Any way to get a file descriptor for polling? Non-blocking preferably.
This was a very nice surprise, looks almost exactly like what I need! But how do I use it?
Could you perhaps add a couple of simple example use-cases to the README?
hi and if i want use this on cygwin, i build it but :::::::
c99 -std=c99 -Wall -Wextra -pedantic -O2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -c -o bus.o bus.c
c99 -std=c99 -Wall -Wextra -pedantic -O2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -c -o libbus.o libbus.c
libbus.c: In function ‘create_semaphores’:
libbus.c:220:14: error: storage size of ‘values’ isn’t known
220 | union semun values;
| ^~~~~~
libbus.c:229:11: warning: left shift count >= width of type [-Wshift-count-overflow]
229 | r *= (1 << (8 * sizeof(key_t) - 2)) - 1;
| ^~
libbus.c:220:14: warning: unused variable ‘values’ [-Wunused-variable]
220 | union semun values;
| ^~~~~~
libbus.c: In function ‘create_shared_memory’:
libbus.c:280:11: warning: left shift count >= width of type [-Wshift-count-overflow]
280 | r *= (1 << (8 * sizeof(key_t) - 2)) - 1;
| ^~
libbus.c: In function ‘semaphore_op_timed’:
libbus.c:368:9: warning: implicit declaration of function ‘semtimedop’ [-Wimplicit-function-declaration]
368 | return semtimedop(bus->sem_id, &op, (size_t)1, timeout);
| ^~~~~~~~~~
libbus.c: In function ‘write_semaphore’:
libbus.c:383:14: error: storage size of ‘semval’ isn’t known
383 | union semun semval;
| ^~~~~~
libbus.c:383:14: warning: unused variable ‘semval’ [-Wunused-variable]
libbus.c:386:1: warning: control reaches end of non-void function [-Wreturn-type]
386 | }
| ^
make: *** [<builtin>: libbus.o] Error 1
in waiting, i can do nc -lU filesocket
and nc -U filesocket
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.