multiplex: add missing includes to socket

This commit is contained in:
Heikki Tampio 2023-04-03 09:08:11 +03:00
parent 3390293e39
commit 4fc362938c
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ int main(void)
std::cout << "Starting uvgRTP session multiplexing into single socket example" << std::endl;
/* To use the library, one must create a global RTP context object */
uvgrtp::context ctx(ADDR);
uvgrtp::context ctx(ADDR, SENDER_PORT);
// A session represents
uvgrtp::session* sess = ctx.create_session(ADDR, ADDR);

View File

@ -19,6 +19,8 @@
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <netdb.h>
#endif
#if defined(__MINGW32__) || defined(__MINGW64__)