Tom MTT
8c30d271df
Previously, the pastes were written to disk until feuille encountered a NULL byte. This is now fixed. + version bump.
28 lines
590 B
C
28 lines
590 B
C
/*
|
|
* server.h
|
|
* server.c header declarations.
|
|
*
|
|
* Copyright (c) 2022
|
|
* Tom MTT. <tom@heimdall.pm>
|
|
*
|
|
* This file is licensed under the 3-Clause BSD License.
|
|
* You should have received a copy of the 3-Clause BSD License
|
|
* along with this program. If not, see
|
|
* <https://basedwa.re/tmtt/feuille/src/branch/main/LICENSE>.
|
|
*/
|
|
|
|
#ifndef _SERVER_H_
|
|
#define _SERVER_H_
|
|
|
|
#include "feuille.h"
|
|
|
|
int initialize_server();
|
|
|
|
int accept_connection(int);
|
|
void close_connection(int);
|
|
|
|
unsigned long read_paste(int, char **);
|
|
int send_response(int, char *);
|
|
|
|
#endif
|