X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;h=7d1ea7bfdf24e9adc414e6f29beeb87c7950a8d7;hb=aaf1851315023c2f960c58a0d977085a485298e7;hp=d66a1c7add4f7427e1285bd6cd5ae94e61dd316a;hpb=38c25d62c2bc76908bd95fb21c8f5e39ad269884;p=meshlink diff --git a/src/net.h b/src/net.h index d66a1c7a..7d1ea7bf 100644 --- a/src/net.h +++ b/src/net.h @@ -37,7 +37,7 @@ #define MAXSIZE (MTU + 4 + EVP_MAX_BLOCK_LENGTH + EVP_MAX_MD_SIZE + MTU/64 + 20) /* MTU + seqno + padding + HMAC + compressor overhead */ #define MAXBUFSIZE ((MAXSIZE > 2048 ? MAXSIZE : 2048) + 128) /* Enough room for a request with a MAXSIZEd packet or a 8192 bits RSA key */ -#define MAXSOCKETS 128 /* Overkill... */ +#define MAXSOCKETS 8 /* Probably overkill... */ #define MAXQUEUELENGTH 8 /* Maximum number of packats in a single queue */ @@ -115,6 +115,7 @@ typedef struct outgoing_t { struct config_t *cfg; struct addrinfo *ai; struct addrinfo *aip; + struct event ev; } outgoing_t; extern int maxoutbufsize;