Go to the documentation of this file.
111 #if !defined(OPENSSL_SYS_NETWARE)
112 #include <sys/types.h>
116 #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
120 #if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32)
124 #if defined(OPENSSL_SYS_VMS) && !defined(FD_SET)
127 #define MAX_NOFILE 32
131 #define FD_SETSIZE MAX_NOFILE
135 #define MAXSELFD MAX_NOFILE
137 #define NFDBITS (sizeof(fd_mask) * NBBY)
140 typedef fd_mask fd_set;
141 #define FD_SET(n, p) (*(p) |= (1 << ((n) % NFDBITS)))
142 #define FD_CLR(n, p) (*(p) &= ~(1 << ((n) % NFDBITS)))
143 #define FD_ISSET(n, p) (*(p) & (1 << ((n) % NFDBITS)))
144 #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p)))
148 #define PORT_STR "4433"
149 #define PROTOCOL "tcp"
151 int do_server(
int port,
int type,
int *ret,
int (*
cb) (
char *hostname,
int s,
unsigned char *context),
unsigned char *context);
159 int init_client(
int *sock,
char *server,
int port,
int type);
165 int argi,
long argl,
long ret);