ConnectionHandler
ConnectionHandler Class Reference
#include <handler.h>
Inheritance diagram for ConnectionHandler:
Public Member Functions | |
ConnectionHandler (const ConnectionHandler &)=delete | |
ConnectionHandler (int fd) | |
int | handle () |
ConnectionHandler & | operator= (const ConnectionHandler &)=delete |
void | sendExitCode () |
Public Member Functions inherited from SocketSecurity | |
SocketSecurity (int fd) | |
int | peerGid () const |
int | peerPid () const |
int | peerUid () const |
Public Attributes | |
int | m_exitCode |
bool | m_hasExitCode |
bool | m_needExitCode |
pid_t | m_pid |
Detailed Description
A ConnectionHandler handles a client.
It is called from the main program loop whenever there is data to read from a corresponding socket. It keeps reading data until a newline is read. Then, a command is parsed and executed.
Constructor & Destructor Documentation
◆ ConnectionHandler()
ConnectionHandler::ConnectionHandler | ( | int | fd | ) |
Definition at line 35 of file handler.cpp.
◆ ~ConnectionHandler()
ConnectionHandler::~ConnectionHandler | ( | ) |
Definition at line 47 of file handler.cpp.
Member Function Documentation
◆ handle()
int ConnectionHandler::handle | ( | ) |
Handle incoming data.
Definition at line 58 of file handler.cpp.
◆ sendExitCode()
void ConnectionHandler::sendExitCode | ( | ) |
Definition at line 113 of file handler.cpp.
Member Data Documentation
◆ m_exitCode
◆ m_hasExitCode
◆ m_needExitCode
◆ m_pid
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.