multiplex: Update header includes in frame_queue

This commit is contained in:
Heikki Tampio 2023-05-05 12:34:59 +03:00
parent 4107baf48b
commit 7747890c3c
3 changed files with 15 additions and 1 deletions

View File

@ -14,7 +14,11 @@
#include <queue>
#ifndef _WIN32
#ifdef _WIN32
#include <ws2def.h>
#include <ws2ipdef.h>
#else
#include <netinet/in.h>
#include <sys/socket.h>
#endif

View File

@ -14,8 +14,11 @@
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
#include <ws2def.h>
#include <ws2ipdef.h>
#else
#include <arpa/inet.h>
#include <netinet/in.h>
#include <cassert>
#include <cstring>
#endif

View File

@ -11,6 +11,13 @@
#include <vector>
#include <mutex>
#ifdef _WIN32
#include <ws2def.h>
#include <ws2ipdef.h>
#else
#include <netinet/in.h>
#endif
// TODO: get these from socket?
const int MAX_MSG_COUNT = 5000;
const int MAX_QUEUED_MSGS = 10;