Skip to content

victozpark/Itc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inter thread communication

Topic-based inter-thread communication

WARNING

Currently under development.
There may be bugs. And it will have more functions later.

Basic features

  • Topic-based data communication. (send, request, reply message)
    • Send message : It sends a message to all Listeners listening on the topic.
    • Reqeust message : It sends a message to one of Listeners listening on the topic and wait for a response-message to arrive.
    • Reply message : When a user-service thread receives a reuqest-message, it can reply back to the sender with a response-message.
  • 1:n or 1:1 data transmission.

UML class diagram

Itc module

Sample user module


Install (Itc module)

$ mkdir build                # Make a build directory
$ cd build                   # Change to the build directory
$ cmake ..                   # Create a Makefile
$ make                       # Make a libray file
$ make install               # Install header and library files
$ ls -al ../release/include  # You can check a header file
$ ls -al ../release/lib      # You can check a library file

Test (Sample user module)

### "Install" is required before testing.
$ cd test                    # Change to the test directory
$ mkdir build                # Make a build directory
$ cd build                   # Change to the build directory
$ cmake ..                   # Create a Makefile
$ make                       # Make a binary file
$ ./main                     # Run test

Please let me know if there are any bugs or features you would like to use.
Thank you. :)