summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
AgeCommit message (Collapse)Author
2015-07-17Allow savedata to be slightly smaller than the allocated buffer.irungentoo
2015-07-16Pack connected TCP relay nodes.irungentoo
2015-07-11Tell A/V that friend is offline when friend is deleted.irungentoo
2015-07-08Fix segfault caused by cleanup functions in wrong orderJfreegman
2015-06-30Allow sending data after file is paused.irungentoo
Dissallow sending non requested data.
2015-06-28Removed useless parameter from new_TCP_server()irungentoo
2015-06-22Fixed warning.irungentoo
2015-05-26Fixed rare bug where userstatus, name, etc... would not be sent to friend.irungentoo
2015-05-26Fixed bug when deleting friend that we are connected to in group chat.irungentoo
2015-05-21Load only secret key from tox save, not public key.irungentoo
Calculate public key from it.
2015-05-14Added tcp test.irungentoo
2015-05-12Connect to own TCP server if hosting one.irungentoo
Removed useless code.
2015-05-08Added basic TCP server hosting to tox.h api.irungentoo
TODO: tell friends we are hosting a relay and prioritize using relays hosted by friends over bootstrap ones.
2015-05-03Removed useless code.irungentoo
2015-04-27Move LAN discovery from Messenger to friend_connection.irungentoo
2015-04-24Fixed a couple possible issues with the friend connection callback.irungentoo
A TCP callback could be received when only a UDP connection was present. Increased a UDP timeout to make it less likely to time out and switch to TCP.
2015-04-21Move the send tcp relay packet from Messenger to friend connection.irungentoo
2015-04-18Some messenger fixes.irungentoo
2015-04-16Properly share connected relays and connect to the friend correctlyirungentoo
with them.
2015-04-16Store TCP relays tied to friend and reconnect to some when reconnecting.irungentoo
2015-04-05Fixed typo.irungentoo
2015-04-03File transfer fixes.irungentoo
Don't allow non transferring files to be paused and then resumed starting the file transfer.
2015-04-02API function to get last seen timestamp of friendJfreegman
also removed remnants of the no longer used variable ping_lastrecv
2015-03-30Removed unused variable.irungentoo
2015-03-27Fixed file transfer bug.irungentoo
This should have been at the beginning of the loop, not the end.
2015-03-23Added some more checks for file packets.irungentoo
2015-03-21Transfers with filelength == 0 now behave exactly like transfers of everyirungentoo
other size (except streaming of course).
2015-03-20Allow sending of file transfer requests with length 0 but don't allocateirungentoo
any file number for them in core. These can be used to tell friends we don't have an avatar set or to unset a set avatar.
2015-03-20For file transfers UINT64_MAX is now used as the size for streamingirungentoo
transfers instead of 0. For avatar transfers file size 0 now means that the client has no avatar set. Added a test for streaming transfers.
2015-03-18Merged normal message function and send action function into oneirungentoo
messaging function. This removes code duplication and allows us to easily add new message types to the api without having to add new functions.
2015-03-17Kill all file transfers associated with the friend when friend goesirungentoo
offline.
2015-03-17Added tox_file_send_seek() function to api.irungentoo
This function can be used to seek an incoming file tranfer right before accepting it. It is meant to be used to resume incomplete file tranfers by clients.
2015-03-17Allow file names to be of length 0.irungentoo
Pointer in callback will be NULL if length is 0.
2015-03-17Added and implemented file_id parameter to file tranfers.irungentoo
file_id is a 32byte identifier that can be used by users to identify file tranfers across core/client restarts in order to resume broken file tranfers. In avatar tranfers it corresponds to the hash of the avatar. Added tox_file_get_file_id() function to api to obtain the file_id of an ongoing file transfer. If not set, core will generate a random one.
2015-03-15Avatar hash is now the filename of the file transfer instead of theirungentoo
first 32 bytes. Enforce length of filename in core when transfer is an avatar type transfer to make things more safe.
2015-03-13When link can't send packets anymore, stop the request chunk callback.irungentoo
Removed time variable in packet struct and replaced it with sent variable.
2015-03-13File kind is now a uint32_t.irungentoo
This allows clients to agree on what numbers mean what without having it be set in core.
2015-03-13tox_file_send_chunk() must now send data the same length as requestedirungentoo
in the requested chunk callback. For zero size transfers if the data sent is not the same length, the file is assumed to be done.
2015-03-12File transfer fixes and improvements.irungentoo
2015-03-12Don't assume tox_file_send_chunk() is called in the request chunkirungentoo
callback.
2015-03-12Added position parameter to tox_file_send_chunk().irungentoo
This is done so that the function now has the same parameters as the request chunk callback.
2015-03-12tox_new now sets error to TOX_ERR_NEW_PORT_ALLOC when binding to port fails.irungentoo
2015-03-11tox_callback_connection_status() implemented.irungentoo
Attempted fix of connection checking to make it more stable.
2015-03-10Implementation of new api file transfers.irungentoo
Everything should work except resuming.
2015-03-09Updated new_filesender function in Messenger.cirungentoo
2015-03-09Fixed case where a recv and a sending file would have the same number.irungentoo
recv file numbers are now (file num in packet + 1) << 16
2015-03-06Updated File request packet to new format.irungentoo
[uint8_t packet_id (PACKET_ID_FILE_SENDREQUEST)][uint8_t file_number] [uint32_t type][uint64_t file_size][filename (currently max 255 bytes)] recv file numbers are << by 16 to distinguish them from sending files.
2015-03-05enums are no longer typedefed to uint8_t.irungentoo
2015-03-05Code cleanups.irungentoo
Fixed wrong variable used, removed useless elements of struct.
2015-03-04Removed useless TODO comments.irungentoo