|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_RUN_IMPL_RUNREADWRITE_H
11 #define YARP_RUN_IMPL_RUNREADWRITE_H
90 int warn_suppress = yarp::run::impl::pipe(pipe_block);
92 fwait=fdopen(pipe_block[0],
"r");
93 fpost=fdopen(pipe_block[1],
"w");
116 char* warn_suppress = fgets(dummy, 16,
fwait);
128 fprintf(
fpost,
"SHKIATTETE!\n");
143 RunWrite(std::string& portName, std::string& loggerName)
148 sprintf(buff,
"/%d",
getpid());
187 int warn_suppress = yarp::run::impl::pipe(term_pipe);
189 yarp::run::impl::dup2(term_pipe[0], STDIN_FILENO);
190 FILE* file_term_pipe=fdopen(term_pipe[1],
"w");
191 fprintf(file_term_pipe,
"SHKIATTETE!\n");
192 fflush(file_term_pipe);
193 fclose(file_term_pipe);
245 RunReadWrite(std::string &portsName, std::string &fpName, std::string &lpName)
255 sprintf(buff,
"/%d",
getpid());
301 #endif // YARP_RUN_IMPL_RUNREADWRITE_H
void close() override
Stop port activity.
RunRead(std::string &portName)
An abstraction for a thread of execution.
int getpid()
Portable wrapper for the getppid() function.
RunReadWrite(std::string &portsName, std::string &fpName, std::string &lpName)
A mini-server for network communication.
static void delaySystem(double seconds)
void run() override
Main body of the new thread.
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
RunWrite(std::string &portName)
void interrupt() override
Interrupt any current reads or writes attached to the port.
bool start()
Start the new thread running.
RunTerminator(RunStdio *pStdio)
RunWrite(std::string &portName, std::string &loggerName)
void run() override
Main body of the new thread.