ConnectionHandler

Search for usage in LXR

ConnectionHandler Class Reference

#include <handler.h>

Inheritance diagram for ConnectionHandler:

Public Member Functions

 ConnectionHandler (const ConnectionHandler &)=delete
 
 ConnectionHandler (int fd)
 
int handle ()
 
ConnectionHandleroperator= (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.

Definition at line 22 of file handler.h.

Member Function Documentation

◆ handle()

int ConnectionHandler::handle ( )

Handle incoming data.

Definition at line 58 of file handler.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Dec 8 2022 04:05:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.