aboutsummaryrefslogtreecommitdiff
path: root/src/telnet.h
blob: 301d5d70c0d40f40258ab2cbd8a98a7398e91d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <poll.h>
#include <stdint.h>

#include "misc.h"
#include "log.h"

/**
 * Spawn telnet server
 */
void telnet_server(struct prog_params params);

void handle_connection(int _socket, struct sockaddr_in _addr, int argc, char* argv[]);