Remove util.cc

This commit is contained in:
Aaro Altonen 2019-05-17 11:08:40 +03:00
parent b8dac98c55
commit 87cf722029
2 changed files with 8 additions and 20 deletions

View File

@ -1,16 +0,0 @@
#ifdef _WIN32
#else
#include <arpa/inet.h>
#endif
#include <iostream>
#include <cstring>
#include "util.hh"
#include "conn.hh"
#include "rtp_generic.hh"
uint64_t rtpGetUniqueId()
{
static uint64_t i = 1;
return i++;
}

View File

@ -4,8 +4,9 @@
class RTPConnection; class RTPConnection;
const int MAX_PACKET = 65536; const int MAX_PACKET = 65536;
const int MAX_PAYLOAD = 1000; const int MAX_PAYLOAD = 1000;
const int RTP_HEADER_SIZE = 12;
enum RTP_ERROR { enum RTP_ERROR {
RTP_OK = 0, RTP_OK = 0,
@ -22,5 +23,8 @@ typedef enum RTP_FORMAT {
} rtp_format_t; } rtp_format_t;
uint64_t rtpGetUniqueId(); static inline uint64_t rtpGetUniqueId()
int rtpRecvData(RTPConnection *conn); {
static uint64_t i = 1;
return i++;
}