mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
32 lines
534 B
C
32 lines
534 B
C
|
#ifndef __RTP_AUDIO_RECEIVER_H__
|
||
|
#define __RTP_AUDIO_RECEIVER_H__
|
||
|
|
||
|
#include "RtpPacket.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <arpa/inet.h>
|
||
|
#include <sys/socket.h>
|
||
|
|
||
|
#include "SequenceCounter.h"
|
||
|
#include "SrtpStream.h"
|
||
|
|
||
|
class RtpAudioReceiver {
|
||
|
|
||
|
private:
|
||
|
int socketFd;
|
||
|
|
||
|
SequenceCounter sequenceCounter;
|
||
|
SrtpStream srtpStream;
|
||
|
|
||
|
public:
|
||
|
RtpAudioReceiver(int socketFd, SrtpStreamParameters *parameters);
|
||
|
|
||
|
int init();
|
||
|
RtpPacket* receive(char* encodedData, int encodedDataLen);
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|