| 38 |
#include <sys/wait.h> |
#include <sys/wait.h> |
| 39 |
#include <sys/epoll.h> |
#include <sys/epoll.h> |
| 40 |
#include <arpa/inet.h> |
#include <arpa/inet.h> |
| 41 |
|
#include <netinet/in.h> |
| 42 |
#include <systemd/sd-daemon.h> |
#include <systemd/sd-daemon.h> |
|
#include <libssh/libssh.h> |
|
|
#include <libssh/server.h> |
|
| 43 |
|
|
| 44 |
struct process_sockaddr_t |
struct process_sockaddr_t |
| 45 |
{ |
{ |
| 48 |
}; |
}; |
| 49 |
typedef struct process_sockaddr_t PROCESS_SOCKADDR; |
typedef struct process_sockaddr_t PROCESS_SOCKADDR; |
| 50 |
|
|
| 51 |
static PROCESS_SOCKADDR process_sockaddr_pool[MAX_CLIENTS_LIMIT]; |
static PROCESS_SOCKADDR process_sockaddr_pool[MAX_CLIENT_LIMIT]; |
| 52 |
|
|
| 53 |
int net_server(const char *hostaddr, in_port_t port) |
int net_server(const char *hostaddr, in_port_t port) |
| 54 |
{ |
{ |