Go to the documentation of this file.
27 #ifndef NO_HAVE_SELECT
30 #ifndef NO_HAVE_SOCKET
33 #ifndef NO_HAVE_UNISTD_H
36 #ifndef NO_HAVE_FCNTL_H
39 #ifndef NO_HAVE_LIMITS_H
43 #ifndef NO_HAVE_STRSTR
46 #ifndef NO_HAVE_STRTOUL
51 #if !defined(HAVE_SELECT) || !defined(HAVE_SOCKET)
52 #error "can't build without some network basics like select() and socket()"
69 #include <sys/socket.h>
70 #include <sys/types.h>
71 #include <netinet/in.h>
80 #ifndef OPENSSL_NO_BUFFER
84 #define MAX_DATA_SIZE 16384
116 unsigned int buffer_adddata(
buffer_t *buf,
const unsigned char *
ptr,
123 unsigned int buffer_takedata(
buffer_t *buf,
unsigned char *
ptr,
157 #ifdef OPENSSL_NO_BUFFER
158 #error "TUNALA section of tunala.h requires BUFFER support"
201 unsigned short *port,
int accept_all_ip);
208 int int_strtoul(
const char *str,
unsigned long *val);
210 #define int_strstr strstr
212 char *
int_strstr(
const char *haystack,
const char *needle);