Send a message to a process that has a corresponding socket port created using the Terminee class to ask to start a graceful quit procedure. More...
#include <yarp/os/Terminator.h>
Static Public Member Functions | |
static bool | terminateByName (const char *name) |
Send a quit message to a specific socket port. More... | |
Send a message to a process that has a corresponding socket port created using the Terminee class to ask to start a graceful quit procedure.
The receiving process must collaborate and take appropriate action after receiving the message. The Terminator/Terminee class pair starts a tcp socket on the server side listening for incoming connections and the magic word "quit" (all lowercase). The ip-port pair is registered with a symbolic name on the Yarp name server and can be queried by the client to send the termination message.
Definition at line 34 of file Terminator.h.
|
static |
Send a quit message to a specific socket port.
name | is the name of the socket port (as registered in the name server). |
Definition at line 29 of file Terminator.cpp.