summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-12-17Update the tests so that they send multiple messages and files and also chang...pranomostro
2016-12-15Make tests faster by not starting three different sessions after each other.pranomostro
2016-12-15Add tests for ratox, importing z3bra's tests....Add a target check for the makefile for running the tests. pranomostro
2016-12-05Bump to 0.3...Changes: * upgrade to newest irungentoo version of toxcore * add the nodegen script that makes the TODO file obsolete * upgrade calls to be more smooth and use less cpu * fix a number of small bugs from the last version pranomostro
2016-12-05Fix typo in error message, update nodes.hpranomostro
2016-12-05Fix possible NULL memcpy() after allocating data.pranomostro
2016-12-02Check data for being NULL instead of intermediate, we did that already.pranomostro
2016-12-02Fix issue with endianness in confcreate().pranomostro
2016-12-02Merge branch 'toktok' of git.z3bra.org:ratox into toktok...Fix amend commit. pranomostro
2016-12-02Data model and adding function for conferences.pranomostro
2016-12-01Remove the return value from friendcreate()...It is not used anywhere and it is unlikely that this will change anytime. pranomostro
2016-12-01Data model and adding function for conferences.pranomostro
2016-11-28Remove converting nospam values because toxcore does that for us now.pranomostro
2016-11-28Update to the toktok API.pranomostro
2016-11-25Make ringing delay checks simplerz3bra
2016-11-25Discard sending of the avatar picturesz3bra
2016-11-25nodegen: Keep only online nodes (.last_ping > 0)...Updated nodes.h to match this criteria as well z3bra
2016-11-25Cancel calls ringing longer than RINGINGDELAYz3bra
2016-11-25Hang up only when we're in TRANSMITTING mode...When f->av.state equals TRANSMITTING, it means that we're neither receiving, nor sending data, thus, we can cancel the call. This doesn't apply to RINGING mode because this state is possible when someone calls us, and we didn't answer yet. z3bra
2016-11-25Fix accepting friend requests...Actually passes the friend number returned by tox_friend_add_norequest() to the friendcreate() function. z3bra
2016-11-24Fix tests against friend call statez3bra
2016-11-24Let the caller hang up while call is ringingz3bra
2016-11-24Allocate resources for outgoing call when needed...If we're not initiating the call, we might be in TRANSMITTING mode even if call_in hasn't been openned by the user. In this case, we shouldn't send any data. sednfriendcalldata() should only be called when resources are allocated for an OUTGOING call, which is triggered when the friend accepts audio. z3bra
2016-11-23Make sending only a newline succeed (patch by z3bra).pranomostro
2016-11-23Adjust the types of a few variables where it makes sense, mostly in regard to...pranomostro
2016-11-22Fix issue that prevents correct sending of INCOMPLETE buffers....f->av.state & INCOMPLETE was evaluated as 8, which made the third test always false. pranomostro
2016-11-22Use ternary to prevent passing negative size to fiforead()z3bra
2016-11-22Remove noisy logmsg() / Fix grammarz3bra
2016-11-21Discard buffer if size is bigger than expected sizez3bra
2016-11-21Make sure call is only canceled once...Upon receiving a FINISHED state, the client should consider the call over, and free its local variable. It should NOT try to send a CANCEL signal, as it could try to cancel the call twice, resulting in a double free() that can crash the core. z3bra
2016-11-19Reduce time between sample sending...Start sending the next audio frame before the previous frame is done sending. This is for preventing the peer to receive "blanks" in the audio channel. z3bra
2016-11-19Get audio call to work properly...This commit puts back in place the settings that were previously set regarding audio encoding, preparation of the frame, buffer and so on. These settings used to work great and I modified them without having any clue of how it was working. Now I'm done playing, and it works properly. Hooray. z3bra
2016-11-18Fixed issue preventing the user to answer callsz3bra
2016-11-18Update style for if() conditionsz3bra
2016-11-18Update audio parameters for the new APIz3bra
2016-11-18Add a RINGING state for calls...This helps knowing that a call has been initiated, but not answered yet. We need it because otherwise the state of the FCALL_OUT would not even be evaluated. z3bra
2016-11-14Remove toxcore submodulez3bra
2016-11-14Revert "Compile against local toxcore submodule"...This reverts commit a1d2b63e6af32685f5828c302a0d3edeeb48090f. Ratox now compiles against the latest version of the API, so there is no need for using a local submodule anymore. z3bra
2016-11-10Updated nodes.h, small fixes in loop().pranomostro
2016-11-10Express AUDIOBITRATE in kb/sz3bra
2016-11-10Retrieve/Send nospam value as little-endian...For readiness, nospam value is written in big endian in nospam/out. toxcore expect receiving it as little-endian, so we convert it upon calling the nospam get/setter. z3bra
2016-11-10Remove useless call to FD_CLR()...This snippet was introduced when the client could send too much data to the core for the transfer. The new toxcore API introduces a callback triggered when the core is ready to send more data. It means we don't need to keep track of a local buffer anymore, and simply read from the file_in FIFO when the core is ready. z3bra
2016-11-09Fix nospam value endiannessz3bra
2016-11-08Ensure calls are answered properlyz3bra
2016-11-08Get rid of 'chunksz' attribute in transfer structz3bra
2016-11-08Handle file transfer in multiple chunksz3bra
2016-11-08Various cases of code cleanup:...-Fixed memory leak in datasave(). -Made some types more clean, such as using size_t instead of uint32_t and size_t instead of int. -Removed unneccessary length checks pranomostro
2016-11-08Update toxcore to the latest versionz3bra
2016-11-08Accomodate file transfer callbacks to the new APIz3bra
2016-11-08Mark transfer as complete as soon as chunk len is 0z3bra