mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-02 22:22:02 +00:00
Support for Signal calls.
Merge in RedPhone // FREEBIE
This commit is contained in:
35
jni/redphone/RtpAudioSender.h
Normal file
35
jni/redphone/RtpAudioSender.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef __RTP_AUDIO_SENDER_H__
|
||||
#define __RTP_AUDIO_SENDER_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/socket.h>
|
||||
//#include "srtp.h"
|
||||
|
||||
#include "SrtpStream.h"
|
||||
|
||||
class RtpAudioSender {
|
||||
private:
|
||||
int socketFd;
|
||||
uint32_t sequenceNumber;
|
||||
|
||||
struct sockaddr *sockAddr;
|
||||
int sockAddrLen;
|
||||
|
||||
SrtpStream srtpStream;
|
||||
|
||||
public:
|
||||
RtpAudioSender(int socketFd, struct sockaddr *sockAddr, int sockAddrLen,
|
||||
SrtpStreamParameters *parameters);
|
||||
|
||||
// ~RtpAudioSender();
|
||||
|
||||
int init();
|
||||
int send(int timestamp, char *encodedData, int encodedDataLen);
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user