#include "setup.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "inet.h"
#include "compat.h"
#include "config.h"
#include "proxy.h"
#include "opm_common.h"
#include "opm_types.h"
#include "opm_error.h"
#include "libopm.h"
Functions | |
int | libopm_proxy_http_write (OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) |
int | libopm_proxy_socks4_write (OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) |
int | libopm_proxy_socks5_write (OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) |
int | libopm_proxy_wingate_write (OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) |
int | libopm_proxy_router_write (OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) |
int | libopm_proxy_httppost_write (OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn) |
int libopm_proxy_http_write | ( | OPM_T * | scanner, | |
OPM_SCAN_T * | scan, | |||
OPM_CONNECTION_T * | conn | |||
) |
References _OPM::config, _OPM_CONNECTION::fd, libopm_config(), OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_SUCCESS, SENDBUFLEN, snprintf, and USE_VAR.
int libopm_proxy_socks4_write | ( | OPM_T * | scanner, | |
OPM_SCAN_T * | scan, | |||
OPM_CONNECTION_T * | conn | |||
) |
References _OPM::config, _OPM_CONNECTION::fd, inet_aton, libopm_config(), OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_SUCCESS, SENDBUFLEN, snprintf, and USE_VAR.
int libopm_proxy_socks5_write | ( | OPM_T * | scanner, | |
OPM_SCAN_T * | scan, | |||
OPM_CONNECTION_T * | conn | |||
) |
References _OPM::config, _OPM_CONNECTION::fd, inet_aton, libopm_config(), OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_SUCCESS, SENDBUFLEN, snprintf, and USE_VAR.
int libopm_proxy_wingate_write | ( | OPM_T * | scanner, | |
OPM_SCAN_T * | scan, | |||
OPM_CONNECTION_T * | conn | |||
) |
References _OPM::config, _OPM_CONNECTION::fd, libopm_config(), OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_SUCCESS, SENDBUFLEN, snprintf, and USE_VAR.
int libopm_proxy_router_write | ( | OPM_T * | scanner, | |
OPM_SCAN_T * | scan, | |||
OPM_CONNECTION_T * | conn | |||
) |
References _OPM::config, _OPM_CONNECTION::fd, libopm_config(), OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_SUCCESS, SENDBUFLEN, snprintf, and USE_VAR.
int libopm_proxy_httppost_write | ( | OPM_T * | scanner, | |
OPM_SCAN_T * | scan, | |||
OPM_CONNECTION_T * | conn | |||
) |
References _OPM::config, _OPM_CONNECTION::fd, libopm_config(), OPM_CONFIG_SCAN_IP, OPM_CONFIG_SCAN_PORT, OPM_SUCCESS, SENDBUFLEN, snprintf, and USE_VAR.