Giter Site home page Giter Site logo

libipc's Introduction

libipc

libipc is a mechanism that allows a C program to call a function that is executed in a different program. It is implemented as a thin layer on top of Unix-domain sockets.

It is under heavy development and the documentation has not been written yet.

It currently runs on FreeBSD and Linux, but should be portable to other POSIX-like systems.

What currently works:

  • using the ipcc IDL compiler to generate code
  • declaring functions that take integers or strings
  • embedding an IPC server into an existing daemon
  • calling remote functions as a client

What is planned for the future:

  • support for passing file descriptors between processes
  • declaring structures and passing them as function arguments
  • merging the StateD library into libipc, and using it to provide support for variables
  • thread safety
  • a convenience function to call from main() that provides a complete IPC server-in-a-box. This would be for daemons that are purely for IPC, and don't have their own run loop.

What would be desired, but is not on the roadmap yet:

  • asynchronous function calls
  • kernel support for performance optimizations

Building from source code

Building on FreeBSD

Run "make" to build everything.

##Building on Linux

  1. Install libkqueue
  2. Run:
make CFLAGS="-I/usr/include/kqueue -D_BSD_SOURCE" LDADD="-lkqueue -ldl -lpthread"

Usage

Refer to the Developer's Guide for information about using this library.

Contact information

There is a libipc-devel mailing list dedicated to discussion of this library.

libipc's People

Contributors

mheily avatar

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.