Blink DB Documentation v1.0.0
Blink DB Documentation
Loading...
Searching...
No Matches
KqueueServer Class Reference

Kqueue-based server class. More...

#include <kqueue_server.hpp>

Public Member Functions

 KqueueServer (const std::string &addr, int port)
 KqueueServer constructor.
void run ()
 Run the server loop.

Detailed Description

Kqueue-based server class.

This class implements a Kqueue-based server that handles client connections and processes RESP commands. It uses the LSMTree engine for data storage and retrieval. The server listens for incoming connections, decodes RESP commands, and sends responses back to the clients.

Constructor & Destructor Documentation

◆ KqueueServer()

KqueueServer::KqueueServer ( const std::string & addr,
int port )
inline

KqueueServer constructor.

Parameters
addrAddress to bind the server socket to
portPort number to bind the server socket to

This constructor initializes the server socket, kqueue, and event list.

Member Function Documentation

◆ run()

void KqueueServer::run ( )
inline

Run the server loop.

This function enters the main event loop, waiting for events on the kqueue and handling them accordingly.


The documentation for this class was generated from the following file: