summaryrefslogtreecommitdiff
path: root/toxav/rtp.c
AgeCommit message (Collapse)Author
2016-12-03rename messenger function, prepend m_Gregory Mullen (grayhatter)
2016-11-20Fix NULL pointer dereference in log callsMaxim Biro
2016-09-24Make toxcore code C++ compatible.iphydf
It is still C code, so still compatible with C compilers as well. This change lets us see more clearly where implicit conversions occur by making them explicit.
2016-09-19Revert "Make ToxAV stateless"iphydf
This reverts commit 21f8db12c45bd56293262cd4abfb73cd9abec821. It is currently broken. Incoming call callbacks are not invoked, and instead the client goes offline immediately.
2016-09-17Make ToxAV statelessGregory Mullen (grayhatter)
2016-09-13Add some astyle options to make it do more.iphydf
It now enforces a bit more formatting. In particular, padding inside parentheses is removed. I would like it to remove padding after unary operators, but there seems to be no option for that.
2016-09-13Group #include directives in 3-4 groups.iphydf
1. Current module (if C file). 2. Headers from current library. 3. Headers from other library (e.g. toxcore includes in toxav). 4. System headers.
2016-09-06Improve static and const correctness.iphydf
- Any non-externally-visible declarations should be `static`. - Casting away the `const` qualifier from pointers-to-const is dangerous. All but one instance of this are now correct. The one instance where we can't keep `const` is one where toxav code actually writes to a chunk of memory marked as `const`. This code also assumes 4 byte alignment of data packets. I don't know whether that is a valid assumption, but it's likely unportable, and *not* obviously correct. - Replaced empty parameter lists with `(void)` to avoid passing parameters to it. Empty parameter lists are old style declarations for unknown number and type of arguments. - Commented out (as `#if DHT_HARDENING` block) the hardening code that was never executed. - Minor style fix: don't use `default` in enum-switches unless the number of enumerators in the default case is very large. In this case, it was 2, so we want to list them both explicitly to be warned about missing one if we add one in the future. - Removed the only two function declarations from nTox.h and put them into nTox.c. They are not used outside and nTox is not a library.
2016-09-02Do not use `else` after `return`.iphydf
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
2016-09-01Sort #includes in all source files.iphydf
2016-08-31Add braces to all if statements.iphydf
2016-08-27Move logging to a callback.iphydf
This removes the global logger (which by the way was deleted when the first tox was killed, so other toxes would then stop logging). Various bits of the code now carry a logger or pass it around. It's a bit less transparent now, but now there is no need to have a global logger, and clients can decide what to log and where.
2016-08-18Fix some compiler warnings.iphydf
2015-11-11fix BWController misspellingTibor Stolz
2015-11-04Prevent debug message from spamming stdoutJfreegman
2015-11-03Astyle.irungentoo
2015-10-10New Adaptive BR algorithm, cleanups and fixesEniz Vukovic
2015-08-09Updated with upstreammannol
2015-08-07Fixed memory leak during session cleanup and fixed naming.mannol
2015-07-20Fixed some strange build issues.irungentoo
2015-06-30Implement handling capability change on rtp levelmannol
2015-05-07Fixed inconsistenciesmannol
2015-04-30Added many test and fixed various warningsmannol
2015-04-29Donemannol
2015-04-28working av new apimannol
2015-04-27Almooooooostmannol
2015-04-26Almost donemannol
2015-04-22Finished refactoringmannol
2015-04-21Final touchupsmannol
2015-04-17Updated with upstreammannol
2015-04-16The pretty basic adaptive bitrate is *working*mannol
2015-04-13Started custom RTCPmannol
2015-03-22Some progressmannol
2015-02-26Added different error codes for custom packet functions in Messenger.irungentoo
2015-02-26Changes to custom packet functions in Messenger.irungentoo
Added function for rtp A/V packets, modified functions to behave correctly for the new api.
2015-02-21New msi protocolmannol
2015-02-17Added 2 new headers into msi for buffer controlmannol
2015-02-17Updated types in Messenger callbacks to fit with the ones in the new api.irungentoo
Friend number changed from int32_t to uint32_t. Some lengths changed to size_t.
2015-02-01Progressmannol
2015-01-24Current progressmannol
2014-12-09Merge branch 'more_consistent_custom_packet_handlers' of ↵irungentoo
https://github.com/wrouesnel/toxcore
2014-12-09Change prototype for custom_packet_handler functionsWill Rouesnel
Change the custom_packet_handler callback function interface to be consistent with other callback interfaces. The new interface takes the Messenger object calling as the first parameter, and moves the user data object to be the last parameter. This makes it comparable to the callbacks for file transfer and the like, and should simplify building interfaces. The new prototype is: int (*)(Messenger *m, int32_t friendnumber, const uint8_t *data, uint32_t len, void *object)
2014-11-29Merge branch 'mutex-1' of https://github.com/mannol/toxcoreirungentoo
2014-11-29More av cleanupmannol
2014-11-24Merge branch 'master' of https://github.com/mannol/toxcoreirungentoo
2014-11-18av refactormannol
2014-09-30Rework toxav/rtp.c to use ntohl/htonl and ntohs/htonssin
Now we can also remove the helper routines from toxcore/util.[ch].
2014-08-04Fix some toxav warningsmannol
2014-07-25Start sequence number at zero instead of one.irungentoo
2014-07-21Fixed conflictsmannol