mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
23 lines
562 B
C
23 lines
562 B
C
#ifndef _NETCODE_H
|
|
#define _NETCODE_H
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/socket.h>
|
|
|
|
#include "shared/cfgparser.h"
|
|
#include "connpool.h"
|
|
|
|
void nc_ping_entry(struct CP_ENTRY *cpe);
|
|
int nc_connect_rand(int *main, int *alt, int *local);
|
|
int nc_send(int s, const void *buf, size_t len);
|
|
char *nc_recv(int s);
|
|
int nc_sendmsg(int s, int fd);
|
|
int nc_connect_entry(struct CP_ENTRY *cpe);
|
|
int localnets_init(struct cfgstruct *copt);
|
|
void localnets_free(void);
|
|
int islocalnet_name(char *name);
|
|
int islocalnet_sock(struct sockaddr *sa);
|
|
|
|
extern long readtimeout;
|
|
|
|
#endif
|