#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) |
|
#define DEFAULT_PORT 8999 |
#define ENABLE_CURLX_PRINTF |
#define siginterrupt |
( |
|
x, |
|
|
|
y |
|
) |
| do {} while(0) |
Enumerator |
---|
PASSIVE_LISTEN |
|
PASSIVE_CONNECT |
|
ACTIVE |
|
ACTIVE_DISCONNECT |
|
Definition at line 140 of file sockfilt.c.
static RETSIGTYPE exit_signal_handler |
( |
int |
signum | ) |
|
|
static |
static ssize_t fullread |
( |
int |
filedes, |
|
|
void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
static ssize_t fullwrite |
( |
int |
filedes, |
|
|
const void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
static void install_signal_handlers |
( |
void |
| ) |
|
|
static |
static void lograw |
( |
unsigned char * |
buffer, |
|
|
ssize_t |
len |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
static bool read_stdin |
( |
void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
static void restore_signal_handlers |
( |
void |
| ) |
|
|
static |
static bool write_stdout |
( |
const void * |
buffer, |
|
|
size_t |
nbytes |
|
) |
| |
|
static |
unsigned short connectport = 0 |
|
static |
volatile int exit_signal = 0 |
|
static |
const char* ipv_inuse = "IPv4" |
|
static |