Check-in [a00dfe0a20]
Overview
Comment:Changed default port to 80 and added man page
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a00dfe0a20791eef67c14e37e183b2c7dfc3e8b0
User & Date: rkeene on 2014-02-06 22:37:27
Other Links: manifest | tags
Context
2014-02-06
22:41
Changed section to 1 for man page check-in: 20cc928425 user: rkeene tags: trunk
22:37
Changed default port to 80 and added man page check-in: a00dfe0a20 user: rkeene tags: trunk
20:43
Updated to support arguments, updated hashing algorithm, and minor cleanup check-in: 613c9bd346 user: rkeene tags: trunk
Changes

Added filed.8 version [fb9b8ddb1b].



















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
.PU
.TH FILED 8 "06 Feb 14" "filed 1.0"
.SH NAME
filed \- serve files over HTTP
.SH SYNOPSIS
.ll +10
.B filed
.RB [ "\-h" ]
.RB [ \-p\ port ]
.RB [ \-t\ counts ]
.RB [ \-c\ entries ]
.ll -10
.SH DESCRIPTION
.I FILED
serves files over HTTP as minimally as possible.  Only static files (i.e., files that never change or are replaced) are supported.

.SH OPTIONS
.TP
.B \-p
port

.SH AUTHOR
.Sp
Roy Keene
.I <filed@rkeene.org>

Modified filed.c from [d5944384cb] to [0d0ecd3cdc].

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <pwd.h>

/* Compile time constants */
#define FILED_SENDFILE_MAX 16777215
#define MAX_FAILURE_COUNT 30

/* Default values */
#define PORT 8080
#define THREAD_COUNT 5
#define BIND_ADDR "::"
#define CACHE_SIZE 8193

/* Arguments for worker threads */
struct filed_worker_thread_args {
	int fd;







|







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <pwd.h>

/* Compile time constants */
#define FILED_SENDFILE_MAX 16777215
#define MAX_FAILURE_COUNT 30

/* Default values */
#define PORT 80
#define THREAD_COUNT 5
#define BIND_ADDR "::"
#define CACHE_SIZE 8193

/* Arguments for worker threads */
struct filed_worker_thread_args {
	int fd;