#include "server_setup.h"
#include "curlx.h"
#include "getpart.h"
#include "inet_pton.h"
#include "util.h"
#include "server_sockaddr.h"
#include "warnless.h"
#include "memdebug.h"
Go to the source code of this file.
|
| static RETSIGTYPE | exit_signal_handler (int signum) |
| |
| static ssize_t | fullread (int filedes, void *buffer, size_t nbytes) |
| |
| static ssize_t | fullwrite (int filedes, const void *buffer, size_t nbytes) |
| |
| static void | install_signal_handlers (void) |
| |
| static bool | juggle (curl_socket_t *sockfdp, curl_socket_t listenfd, enum sockmode *mode) |
| |
| static void | lograw (unsigned char *buffer, ssize_t len) |
| |
| int | main (int argc, char *argv[]) |
| |
| static bool | read_stdin (void *buffer, size_t nbytes) |
| |
| static void | restore_signal_handlers (void) |
| |
| static curl_socket_t | sockdaemon (curl_socket_t sock, unsigned short *listenport) |
| |
| static bool | write_stdout (const void *buffer, size_t nbytes) |
| |
◆ DEFAULT_LOGFILE
| #define DEFAULT_LOGFILE "log/sockfilt.log" |
◆ DEFAULT_PORT
| #define DEFAULT_PORT 8999 |
◆ ENABLE_CURLX_PRINTF
| #define ENABLE_CURLX_PRINTF |
◆ siginterrupt
| #define siginterrupt |
( |
|
x, |
|
|
|
y |
|
) |
| do {} while(0) |
◆ SIGHANDLER_T
◆ sockmode
| Enumerator |
|---|
| PASSIVE_LISTEN | |
| PASSIVE_CONNECT | |
| ACTIVE | |
| ACTIVE_DISCONNECT | |
Definition at line 140 of file sockfilt.c.
◆ exit_signal_handler()
| static RETSIGTYPE exit_signal_handler |
( |
int |
signum | ) |
|
|
static |
◆ fullread()
| static ssize_t fullread |
( |
int |
filedes, |
|
|
void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
◆ fullwrite()
| static ssize_t fullwrite |
( |
int |
filedes, |
|
|
const void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
◆ install_signal_handlers()
| static void install_signal_handlers |
( |
void |
| ) |
|
|
static |
◆ juggle()
◆ lograw()
| static void lograw |
( |
unsigned char * |
buffer, |
|
|
ssize_t |
len |
|
) |
| |
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ read_stdin()
| static bool read_stdin |
( |
void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
◆ restore_signal_handlers()
| static void restore_signal_handlers |
( |
void |
| ) |
|
|
static |
◆ sockdaemon()
◆ write_stdout()
| static bool write_stdout |
( |
const void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
◆ bind_only
◆ connectport
| unsigned short connectport = 0 |
|
static |
◆ exit_signal
| volatile int exit_signal = 0 |
|
static |
◆ got_exit_signal
◆ ipv_inuse
| const char* ipv_inuse = "IPv4" |
|
static |
◆ port
◆ serverlogfile
◆ verbose