From f818c1a197cdd40145868be97c0472e150c563bb Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 21 May 2014 15:28:14 -0400 Subject: Added functions to send and receive lossy encrypted packets over the Tox connection. A/V should now work over TCP. --- toxav/msi.h | 2 +- toxav/rtp.c | 7 +------ toxav/rtp.h | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) (limited to 'toxav') diff --git a/toxav/msi.h b/toxav/msi.h index 39a9c792..052126d2 100755 --- a/toxav/msi.h +++ b/toxav/msi.h @@ -40,7 +40,7 @@ typedef void ( *MSICallback ) ( void *arg ); * @brief Call type identifier. Also used as rtp callback prefix. */ typedef enum { - type_audio = 70, + type_audio = 192, type_video } MSICallType; diff --git a/toxav/rtp.c b/toxav/rtp.c index 9462a467..d4aa5476 100755 --- a/toxav/rtp.c +++ b/toxav/rtp.c @@ -491,7 +491,7 @@ RTPMessage *msg_parse ( uint16_t sequnum, const uint8_t *data, int length ) * @retval -1 Error occurred. * @retval 0 Success. */ -int rtp_handle_packet ( void *object, IP_Port ip_port, uint8_t *data, uint32_t length ) +int rtp_handle_packet ( void *object, uint8_t *data, uint32_t length ) { RTPSession *_session = object; RTPMessage *_msg; @@ -545,11 +545,6 @@ int rtp_handle_packet ( void *object, IP_Port ip_port, uint8_t *data, uint32_t l if ( !_msg ) return -1; - /* Hopefully this goes well - * NOTE: Is this even used? - */ - memcpy(&_msg->from, &ip_port, sizeof(IP_Port)); - /* Check if message came in late */ if ( check_late_message(_session, _msg) < 0 ) { /* Not late */ _session->rsequnum = _msg->header->sequnum; diff --git a/toxav/rtp.h b/toxav/rtp.h index 58b16ab1..40532391 100755 --- a/toxav/rtp.h +++ b/toxav/rtp.h @@ -75,7 +75,6 @@ typedef struct _RTPMessage { uint8_t data[MAX_RTP_SIZE]; uint32_t length; - IP_Port from; struct _RTPMessage *next; } RTPMessage; -- cgit v1.2.3