libssh2-tunnel/forward-tunnel.h

33 lines
621 B
C
Raw Normal View History

2023-03-24 17:48:25 +08:00
#ifndef FORWARD_TUNNEL
#define FORWARD_TUNNEL
#include <libssh2.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/select.h>
#include <signal.h>
#include <pthread.h>
#include <sys/time.h>
#include <sys/resource.h>
2023-06-05 11:47:35 +08:00
#include <sys/poll.h>
#define MAX_EVENTS 1024
2023-03-24 17:48:25 +08:00
#define BUILD(fmt...) do { fprintf(stderr,"%s %s ",__DATE__,__TIME__); fprintf(stderr, ##fmt); } while(0)
2023-03-24 17:48:25 +08:00
#ifndef INADDR_NONE
#define INADDR_NONE (in_addr_t)-1
#endif
2024-01-03 09:19:09 +08:00
#endif