multiplex: add missing includes to socket
This commit is contained in:
parent
3390293e39
commit
4fc362938c
|
@ -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);
|
||||
|
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue