Remove util.cc
This commit is contained in:
parent
b8dac98c55
commit
87cf722029
16
src/util.cc
16
src/util.cc
|
@ -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++;
|
|
||||||
}
|
|
12
src/util.hh
12
src/util.hh
|
@ -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++;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue