File: server.h

package info (click to toggle)
tsdecrypt 10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 1,152 kB
  • ctags: 2,002
  • sloc: ansic: 14,373; makefile: 253; sh: 166
file content (25 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Server functions
 * Copyright (C) 2006-2010 Unix Solutions Ltd.
 *
 * Released under MIT license.
 * See LICENSE-MIT.txt for license terms.
 */
#ifndef SERVER_H
# define SERVER_H

#ifdef __cplusplus
extern "C" {
#endif

#include <arpa/inet.h>
#include <netinet/in.h>

void daemonize(char *pidfile);
void init_server_socket(char *bind_addr, int bind_port, struct sockaddr_in *server, int *server_socket);

#ifdef __cplusplus
}
#endif

#endif