Bash++
Bash++ compiler internal documentation
helpers.h
Go to the documentation of this file.
1
7#pragma once
8
9#include <sys/socket.h>
10#include <netinet/in.h>
11#include <arpa/inet.h>
12#include <sys/un.h>
13#include <csignal>
14#include <unistd.h>
15
16#include "BashppServer.h"
17
19extern int client_fd;
20extern int server_fd;
21extern int socket_port;
22
23[[ noreturn ]] void signal_handler(int signum);
24int setup_tcp_server(int port);
25int setup_unix_socket_server(const std::string& path);
The main server class for handling LSP requests and notifications.
Definition BashppServer.h:59
int socket_port
Definition bpp-lsp.cpp:30
int setup_tcp_server(int port)
Definition helpers.cpp:23
int server_fd
Definition bpp-lsp.cpp:29
int setup_unix_socket_server(const std::string &path)
Definition helpers.cpp:58
int client_fd
Definition bpp-lsp.cpp:28
bpp::BashppServer * p_server
Definition bpp-lsp.cpp:27
void signal_handler(int signum)
Definition helpers.cpp:9