summaryrefslogtreecommitdiff
path: root/testing
AgeCommit message (Collapse)Author
2014-03-18Merge branch 'api-fix'irungentoo
Main changes: 1. Strings no longer need to be NULL terminated. 2. tox_get_friend_id is now named tox_get_friend_number. 3. The friend request callback function is now (Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), the Tox object pointer has been added to it.
2014-03-16Friend request callback now contains the Tox object.irungentoo
2014-03-12updated compilation and execution instructions for Lossless UDP tests, and ↵Kelong Cong
fixed minor typos
2014-02-25bound checking in messenger testingseshagiriprabhu
2014-02-25Added bound checking for friend ID input in DHT testseshagiriprabhu
2014-02-22Renamed dht server to dht nodeMaxim Biro
2014-02-21Some api changes.irungentoo
2014-02-09Astyled and removed some useless files.irungentoo
2014-02-09Fixed buildMaxim Biro
2014-02-09Fixed memory leaks and removed repeated codeMaxim Biro
2014-02-09Modified hex_string_to_binMaxim Biro
2014-01-20Updated DHT server list with onion supporting DHT servers.irungentoo
Onionised DHT_test.
2014-01-19proper windows preprocessor detectionBen Iofel
2013-12-19Fixed ntox building on windows.irungentoo
2013-12-16Astyled the code.irungentoo
2013-12-06Merge branch 'master' into hardenirungentoo
2013-11-29Fix typo.AZ Huang
2013-11-29Fix API name consistency.AZ Huang
2013-11-29Fix return code inconsistency.AZ Huang
2013-11-27Various changes to nTox including a potential crash (also possible from ↵Coren[m]
remote!), and a tiny change to toxcore. Crash stuff: nTox.c: - do_refresh(): avoid crashes (input a "%" and the client goes "boom!", send someone a string with embedded "%" and see him blow up...) Other stuff: toxcore: tox.h (doc.)/network.c (code): - networking_wait_prepare(): return -1 if lenptr was NULL and therefore not settable nTox.c: - fraddr_to_str(): function to convert a TOX_FRIEND_ADDRESS into a segmented (and therefore line-breakable) string - print_friendlist(): print index of friend on name line, print id on 2nd line - command /f: skip spaces (and +) inside a friend id - command /r (new): "/r #" to remove a friend - main(): reduce cpu consumption if we're not currently sending files
2013-11-26Print a more detailed message on CHAT_CHANGE_PEER_DEL, so a user isn't ↵Coren[m]
confounded by the change of peer numbers. On deleting the last peer, it's just a delete. On deleting any other peer, the last peer is moved into that space, gaining a different number. Print that detail where appropriate.
2013-11-24group_namelistchange(): for ui reasons, divulge the peernumber and the ↵Coren[m]
nature of the change (add, del, name change). tox.*, Messenger.*, group_chats.*: - expand interface of callback by peernumber/change groupchats.c: - call callback in addpeer/delpeer/setnick with peernumber and flag nTox.c: - print_groupchatpeers(): print as many names on a line as possible, not one peer per line - print_groupnamelistchange(): only print the change, if possible (i.e. "new peer", "peer's new name") - added command "/p" to print the list of peers
2013-11-23Added callback that tells you when the peer name list of a group chat changes.irungentoo
2013-11-22Added function to get the number of peers and list of names for group chats.irungentoo
2013-11-14Wrapping: Expanded space of output to be a bit larger than input. Basic ↵Coren[m]
wrap(): Embed continuation markers if there's enough space.
2013-11-13Add a "conversation mode", where you set your conversation partner once and ↵Coren[m]
then all non-commands are sent as message to them. /cf # rsp. /cg # sets, /cr resets target Also reformatted display of sent group message slightly to look less beta-ish. Then using "#<num>" for group number vs. "<num>" for friend/peer numbers. Also changed to a slightly different message on people without name.
2013-11-12Merge branch 'group_peername' of https://github.com/FullName/ProjectTox-Core ↵irungentoo
into FullName-group_peername
2013-11-12Group chat: Add a nickname message. Remove strange default nickname. ↵Coren[m]
(Seriously...) group_chats.*: - group_send_nick() to send own name - setnick() to store a received name Messenger.c: - group_send_nick() before group_sendmessage() (in regular intervals, to inform new peers) nTox.c: - print_groupmessage(): on error or on a name of length zero the result of tox_group_peername() isn't null-terminated, catch that
2013-11-12Undo faulty newlines, undo extra newlines.Coren[m]
2013-11-11nTox.c:Coren[m]
- multiple places: tox_getname() doesn't terminate the string, make sure nTox does - format_message(): . - renamed to print_formatted_message() . - changed semantics: does the new_line() itself, saves caller from freeing the buffer (which no caller did) . - changed signature: now also prints the friend's name when sending . - intern: date is only printed once, the message line gets only time - print_message(): enforce null termination - main(): . - setlocale() to init locale (for date/time printing) . - own name: ensure null termination Messenger.c: - notify of friend name change *before* the old name is overwritten
2013-11-10Fixed small issues.irungentoo
DHT_test now only prints non zero entries.
2013-11-10Added more printing to DHT_test, fixed typo.irungentoo
2013-11-10Started as a simple bugfix for wrap(), expanded to more detailed help.Coren[m]
nTox.c: - flag[]: additional flag for special wrapping - help expanded and split (to keep below 256 chars) - new_lines_mark(): stores flag for special wrapping - print_friendlist(): . - extracted pattern for output . - added length of id string allocation . - replaced '\t' with '+ ', wrappers don't account for '\t' - line_eval(): . - removed a few do_refresh() directly after a new_lines() (calls do_refresh() at its end) . - 'h' (help): parsing of an additional character for f(riend) or g(roup) - wrap(): . - the major bugfix: . - no more endless looping if the input had a substring with no spaces . for more than line_width (e.g. ID of 78 and window smaller than 78) - wrap_bars(): wrap() for "rich" messages, honors embedded '\n', breaks preferable at '|' - print_help(): listed all options and added explanations - print_invite(): fixed minuscule typo - main(): made print_help() reachable again nTox.h: - majorly cut down to what is really needed
2013-10-24Removed define that could become confusing.irungentoo
2013-10-23Code cleanups.irungentoo
Fixed some tests.
2013-10-20Merge branch 'Cleanup-defines' of ↵irungentoo
https://github.com/FullName/ProjectTox-Core into FullName-Cleanup-defines
2013-10-20Main: Eliminate TOX_ENABLE_IPV6 (then always on), CLIENT_ONETOONE_IP (then ↵Coren[m]
always off). Additionally (besides cleanups): network.h/tox.h: - WIN32: fix a strange sa_family_t definition - WIN32: define EWOULDBLOCK to WSAEWOULDBLOCK - WIN32: kill macro for an existing function (IN6_ADDR_EQUAL) network.c: - use EWOULDBLOCK instead of EAGAIN (same value, but EWOULDBLOCK is more "popular") - new_networking(): only try to enable IPv4-in-IPv6 if it's not already enabled per default - inet_ntop()/inet_pton(): WIN32: remove partial initializers in favor of a simple memset() - ip_equal(): WIN32: use an existing function - logging: networking_wait_execute(): only dump result if not timeout - logging: loglogdata(): kill an unused variable LAN_discovery.c: - send_broadcasts(): re-enabled, can only support IPv4 by principle, split into fetch_broadcast_info() (to fetch the addresses once) and send_broadcasts() (actual sending) DHT.c: - DHT_load_state_callback(): enclosed a fprintf(stderr, ...) into #ifdef DEBUG Lossless_UDP.c: - change_handshake(): harden against strange sa_family_t definitions Messenger.c: - logging: fix ID to string conversion util.c: - logging: eliminate a signed-warning
2013-10-19Removed unnecessary #ifAntonio Montes
2013-10-19fixed build errors on windowsAntonio Montes
2013-10-16Do not build tox_sync on win32Jin^eLD
2013-10-13tox A/V: integration of A/V code into toxmannol
Also-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
2013-10-08Added function to get the piece size for sending files.irungentoo
2013-10-07Some configuration/build fixes, so building basicaly everything else than ↵BtbN
the library can be disabled
2013-10-06Code cleanups.irungentoo
2013-10-05Fixed warnings.irungentoo
2013-10-05Tox sync added.irungentoo
Tox sync is a proof of concept bittorrent sync inspired application that uses tox to sync the contents of two folders. Currently only works on POSIX compilant operating systems.
2013-10-02File sending added to public api.irungentoo
2013-10-02File control packets can now be used by the person sending the file.irungentoo
2013-10-01nTox updated with changes in core, some file sending things fixes.irungentoo
2013-09-30Basic ntox file sending.irungentoo