summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
AgeCommit message (Collapse)Author
2015-04-09tox_hash fix.irungentoo
2015-04-02API function to get last seen timestamp of friendJfreegman
also removed remnants of the no longer used variable ping_lastrecv
2015-03-25If length is 0, data should be ignored.Roman Pasichnyk
2015-03-21Renamed tox_file_send_control to tox_file_control.irungentoo
Renamed tox_file_send_seek to tox_file_seek.
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-19callback_file_request_chunk -> callback_file_chunk_requestDubslow
A couple of minor reasons, combined warrant a PR imo: a) fileChunkRequested is a better signal name than fileRequestChunkReceived, and I don't want to break consistency by reordering words for just this signal b) "request chunk" is parsed by English speakers as a verb-object combination, implying sending the request, not receiving, whereas "chunk requested" is parsed (more correctly) as an adjective-noun combo (in particular, request is a noun not a verb), and thus reads far more like "hey heads up we just got a request" For instance some tests/testing code had some callbacks to *receive* chunk requests, and they were called "tox_file_request_chunk"... to receive a chunk, not request it. Now they're called "tox_file_chunk_request". So yeah...
2015-03-18Merge branch 'one_more_rename' of https://github.com/dubslow/toxcore into ↵irungentoo
new_api
2015-03-18Removed TOX_USER_STATUS_INVALID.irungentoo
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-18Move get_connection_status to self pseudonamespace, to contrast ↵Dubslow
friend_get_connection_status
2015-03-18Api changes.irungentoo
receive to recv in file receive functions. Added TOX_MAX_FILENAME_LENGTH define.
2015-03-17Renamed SEND_FAILED to SENDQ.irungentoo
2015-03-17Save function renamed to tox_get_savedata()irungentoo
2015-03-17Make sure some defines in the public api are always correct.irungentoo
Make sure some assumptions are always correct.
2015-03-17Changed INVALID_LENGTH to TOO_LONG.irungentoo
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-16New API fixups.iphydf
2015-03-15Merge branch 'new_api_patch' of https://github.com/Impyy/toxcore into new_apiirungentoo
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-15Initialize Tox_Options with default values in tox_options_newImpyy
2015-03-13Merge branch 'newer_api' of https://github.com/dubslow/toxcore into new_apiirungentoo
2015-03-13revert to TOX_FILE_KINDDubslow
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-13tox_friend_get_public_key() now does nothing when public_key is NULL.irungentoo
2015-03-12Convert core code depending on the apiDubslow
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-12Fixed tox_new issue.irungentoo
2015-03-12tox_new now sets error to TOX_ERR_NEW_PORT_ALLOC when binding to port fails.irungentoo
2015-03-12tox_new() fixes.irungentoo
If data is NULL and length non zero, TOX_ERR_NEW_NULL is set. error is set to TOX_ERR_NEW_LOAD_BAD_FORMAT when load fails.
2015-03-11 This is a combination of 11 commits.Dubslow
The first commit's message is: TOX_STATUS -> TOX_USER_STATUS, is more specific This is the 2nd commit message: I pretty strongly believe tox_iteration needs to be renamed to a verb There are several other noun functions in the API, but none of them *do* things. I think even tox_do is better than tox_iteration. tox_do_interval is one possibility, but I'm open to suggestions. This is the 3rd commit message: private_key -> secret_key This is more consistent with modern/NaCl/elliptic cryptography, and also "pk", meaning public key, is all over other toxcore code and documentation. This will eliminate ambiguity. This is the 4th commit message: Rename some functions for pseudo-namespace consistency The enum change results in long enum types, but I think consistency trumps having a few less characters. This is the 5th commit message: TOX_FILE_KIND -> TOX_FILE_TYPE This is more of an English thing than a consistency thing, but TOX_FILE_KIND sounds funnier/stranger to me than TOX_FILE_TYPE. This is the 6th commit message: More specific file control function names This is the 7th commit message: Rename custom packet functions for pseudo-namespace consistency This also has the issue with long enums... but I still think consistent enum names are better This is the 8th commit message: Rename functions for pseudo-namespace consistency This is the 9th commit message: Consistency with https://github.com/sonOfRa/tox4j/blob/master/doc/core-design.md#naming-conventions and the rest of the api This is the 10th commit message: Fix errors in previous function rename commits This is the 11th commit message: Shorten one error enum name
2015-03-11tox_callback_connection_status() implemented.irungentoo
Attempted fix of connection checking to make it more stable.
2015-03-11Use .h for tox_old instead of .c to not break some of my build commands.irungentoo
2015-03-11Implemented the 3 low level network information functions.irungentoo
Added tox_get_udp_port() to tests.
2015-03-10Added group chat functions to the public api.irungentoo
Since the functions are not new api like I put them in tox_old.{c,h}
2015-03-10Implementation of new api file transfers.irungentoo
Everything should work except resuming.
2015-02-27Allow for specifying the port range to use in Tox_Optionssaneki
2015-02-26Implemented custom packet functions in new api.irungentoo
2015-02-25Fixed bug.irungentoo
2015-02-20Implemented callbacks.irungentoo
2015-02-20Implemented message send functions in public api.irungentoo
Internal message functions now return better error codes.
2015-02-19Tox connection function and callback should now work as expected.irungentoo
Changes in Messenger to call the callback every time the connection type changes from TCP to UDP.
2015-02-19Merge branch 'new_api' of https://github.com/dubslow/toxcore into new_apiirungentoo
2015-02-19Typing and status functions implemented.irungentoo
2015-02-18Put const adjective before type nounsDubslow
(Done with two applications of "sed -i -r "s/(\\w+) const\\b/const \\1/g" toxcore/tox.*" ) Conflicts: toxcore/tox.c
2015-02-17More new api functions implemented.irungentoo
Some small self explainatory changes to the api.
2015-02-16More new api work done.irungentoo
m_copy_self_statusmessage no longer takes a buffer length argument.