20 #include <znc/zncconfig.h>
32 int iReadFD, iWriteFD;
33 m_iPid =
popen2(iReadFD, iWriteFD, sExec);
35 ConnectFD(iReadFD, iWriteFD,
"0.0.0.0:0");
41 kill(m_iPid, iSignal);
50 int popen2(
int & iReadFD,
int & iWriteFD,
const CString & sCommand);
51 void close2(
int iPid,
int iReadFD,
int iWriteFD);
57 #endif // !EXEC_SOCK_H
void Kill(int iSignal)
Definition: ExecSock.h:39
void Close(ECloseType eCloseType=CLT_NOW)
just mark us as closed, the parent can pick it up
virtual ~CExecSock()
Definition: ExecSock.h:44
int popen2(int &iReadFD, int &iWriteFD, const CString &sCommand)
void SetWSock(cs_sock_t iSock)
bool ConnectFD(int iReadFD, int iWriteFD, const CS_STRING &sName, bool bIsSSL=false, ETConn eDirection=INBOUND)
Tie this guy to an existing real file descriptor.
cs_sock_t & GetRSock()
returns a reference to the sock
String class that is used inside ZNC.
Definition: ZNCString.h:67
void close2(int iPid, int iReadFD, int iWriteFD)
CExecSock()
Definition: ExecSock.h:27
void SetRSock(cs_sock_t iSock)
Definition: ExecSock.h:25
int Execute(const CString &sExec)
Definition: ExecSock.h:31