OPM_T *
opm_create(void)
{
- int i;
OPM_T *ret;
ret = xcalloc(sizeof *ret);
-
ret->config = libopm_config_create();
ret->scans = libopm_list_create();
ret->queue = libopm_list_create();
static void
libopm_do_openproxy(OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn)
{
- OPM_REMOTE_T *remote;
-
- remote = scan->remote;
-
/* Mark the connection for close */
conn->state = OPM_STATE_CLOSED;
static void
libopm_do_hup(OPM_T *scanner, OPM_SCAN_T *scan, OPM_CONNECTION_T *conn)
{
- OPM_REMOTE_T *remote;
-
- remote = scan->remote;
-
/* Mark the connection for close */
conn->state = OPM_STATE_CLOSED;