#include "setup.h"
#include <stdio.h>
#include "opm.h"
#include "opm_error.h"
#include "opm_types.h"
#include "compat.h"
#include <unistd.h>
Defines | |
#define | ARRAY_SIZEOF(x) (sizeof(x) / sizeof((x)[0])) |
Functions | |
void | open_proxy (OPM_T *, OPM_REMOTE_T *, int, void *) |
void | negotiation_failed (OPM_T *, OPM_REMOTE_T *, int, void *) |
void | timeout (OPM_T *, OPM_REMOTE_T *, int, void *) |
void | end (OPM_T *, OPM_REMOTE_T *, int, void *) |
void | handle_error (OPM_T *, OPM_REMOTE_T *, int, void *) |
int | main (int argc, char **argv) |
Variables | |
int | complete = 0 |
#define ARRAY_SIZEOF | ( | x | ) | (sizeof(x) / sizeof((x)[0])) |
Referenced by main().
void open_proxy | ( | OPM_T * | scanner, | |
OPM_REMOTE_T * | remote, | |||
int | notused, | |||
void * | data | |||
) |
References _OPM_REMOTE::bytes_read, _OPM_REMOTE::ip, opm_end(), _OPM_REMOTE::port, and USE_VAR.
Referenced by main().
void negotiation_failed | ( | OPM_T * | scanner, | |
OPM_REMOTE_T * | remote, | |||
int | notused, | |||
void * | data | |||
) |
References _OPM_REMOTE::bytes_read, _OPM_REMOTE::ip, _OPM_REMOTE::port, and USE_VAR.
Referenced by main().
void timeout | ( | OPM_T * | scanner, | |
OPM_REMOTE_T * | remote, | |||
int | notused, | |||
void * | data | |||
) |
void end | ( | OPM_T * | scanner, | |
OPM_REMOTE_T * | remote, | |||
int | notused, | |||
void * | data | |||
) |
void handle_error | ( | OPM_T * | scanner, | |
OPM_REMOTE_T * | remote, | |||
int | err, | |||
void * | data | |||
) |
References _OPM_REMOTE::ip, OPM_ERR_BIND, OPM_ERR_MAX_READ, OPM_ERR_NOFD, _OPM_REMOTE::port, and USE_VAR.
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
References ARRAY_SIZEOF, complete, end(), handle_error(), negotiation_failed(), open_proxy(), opm_addtype(), opm_callback(), OPM_CALLBACK_END, OPM_CALLBACK_ERROR, OPM_CALLBACK_NEGFAIL, OPM_CALLBACK_OPENPROXY, OPM_CALLBACK_TIMEOUT, opm_config(), OPM_CONFIG_FD_LIMIT, OPM_CONFIG_MAX_READ, OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_CONFIG_TARGET_STRING, OPM_CONFIG_TIMEOUT, opm_create(), opm_cycle(), OPM_ERR_BADADDR, opm_free(), opm_remote_addtype(), opm_remote_create(), opm_remote_free(), opm_scan(), OPM_SUCCESS, OPM_TYPE_HTTP, OPM_TYPE_HTTPPOST, OPM_TYPE_ROUTER, OPM_TYPE_SOCKS4, OPM_TYPE_SOCKS5, OPM_TYPE_WINGATE, and timeout().