GithubHelp home page GithubHelp logo

maandree / bus Goto Github PK

View Code? Open in Web Editor NEW
51.0 51.0 2.0 196 KB

[Feature complete] A simple daemonless system for broadcasting messages locally

Home Page: https://codeberg.org/maandree/bus

License: ISC License

C 67.08% Makefile 4.49% Roff 28.42%
bus c-library interprocess-communication ipc utility

bus's People

Contributors

maandree avatar troglobit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bus's Issues

Add some examples or use-cases

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?

Failed Build For Cygwin

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.