Sending Signals von Python to C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jomotix
    New Member
    • Nov 2007
    • 3

    Sending Signals von Python to C++

    I have a python program running capturing packets from LAN and writing it to a pipe. And a C++ program running reading from that pipe. Not i need to synchronize that. Everytime the python programm writes to the pipe it sends a signal to the c++ program that there is something in the pipe.

    How do i do that? I'm googling for hours to find something. I found the kil() function but I'm still not sure how to do that...can anybody give me a hint?
  • Subsciber123
    New Member
    • Nov 2006
    • 87

    #2
    If your c++ program uses threads, you can have a thread continually reading from the pipe (making sure that it is blocking).

    If you don't use threads, you can have the program check the pipe every time it finishes doing something. More information would be useful in order to solve this problem. What is the context?

    Comment

    Working...