BSD-license-compatible, and NO_STACK build variants

This commit is contained in:
Joseph Henry
2017-07-25 23:40:24 -07:00
parent bb60904899
commit 4e36fe28d5
279 changed files with 113515 additions and 228 deletions

View File

@@ -30,6 +30,14 @@
#include <sys/socket.h>
#include <poll.h>
/****************************************************************************/
/* LWIP */
/****************************************************************************/
#define LWIP_APPLICATION_POLL_FREQ 2
#define LWIP_TCP_TIMER_INTERVAL 50
#define LWIP_STATUS_TMR_INTERVAL 500 // How often we check connection statuses (in ms)
/****************************************************************************/
/* Defines */
/****************************************************************************/
@@ -408,12 +416,17 @@ namespace ZeroTier
{
class picoTCP;
extern ZeroTier::picoTCP *picostack;
class lwIP;
extern ZeroTier::lwIP *lwipstack;
}
/*
* Gets a pointer to a pico_socket given a file descriptor
*/
int zts_get_pico_socket(int fd, struct pico_socket *s);
#if defined(STACK_PICO)
int zts_get_pico_socket(int fd, struct pico_socket *s);
#endif
/**
* Returns the number of sockets either already provisioned or waiting to be