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