summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer.c
AgeCommit message (Collapse)Author
2017-01-01core: update copyright datesSébastien Helleu
2016-10-30xfer: add check on filename2 allocationSébastien Helleu
Now string_expand_home() can return NULL if the HOME environment variable it not set, so this commit adds an extra check on the variable "filename2" before using it.
2016-08-20xfer: fix crash on DCC send if option xfer.file.auto_accept_nicks is set ↵Sébastien Helleu
(closes #781)
2016-08-13xfer: fix NULL pointer derefence in case of memory error in ↵Sébastien Helleu
xfer_set_{local|remote}_address()
2016-08-07core: irc, xfer: do not check return code of res_init()Sébastien Helleu
If the call to res_init() fails, the connection may be OK anyway or in worst case it will fail (with an appropriate error) if the name can not be resolved.
2016-08-07core, irc, xfer: add missing includes for function res_init()Sébastien Helleu
2016-08-07core/plugins: Use res_init before getaddrinfo.Raghavendra Prabhu
With weechat, if the network changes in anyway that causes resolv.conf to be updated, that is not picked up, resulting in irc: connecting to server XXXX.com/1026 (SSL)... irc: address "XXX.com" not found irc: error: Name or service not known irc: reconnecting to server in 30 seconds This happens, especially when one connects to an irc server behind a VPN. This can also happen when there is no network connectivity weechat was started but later network is connected to. The fix is simple, it relies on calling res_init (3) before getaddrinfo in network_connect_child and other places. res_init reloads the resolv.conf and getaddrinfo does not fail with address resolution error.
2016-05-27core, irc, xfer: display more information in memory allocation errors (issue ↵Sébastien Helleu
#573)
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-06-27xfer: evaluate content of options xfer.file.download_path and ↵Sébastien Helleu
xfer.file.upload_path (issue #388)
2015-04-30core: add comments after some #endifSébastien Helleu
2015-01-15core: add priority in plugins to initialize them in orderSébastien Helleu
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer, irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-01core: update copyright datesSébastien Helleu
2014-11-09Merge branch 'xfer_chat' of git://github.com/talisein/weechat-1 into ↵Sébastien Helleu
talisein-xfer_chat
2014-11-09xfer: fix commentsSébastien Helleu
2014-11-09xfer: return 0/1 instead of WEECHAT_RC_OK/ERROR in function xfer_resolve_addrSébastien Helleu
2014-08-20xfer: bind to wildcard address when sendingAndrew Potter
When #5 was fixed, we started to always bind to the local address connected to the irc server because the xfer.network.own_ip address may not be able to be bound to when NATed. But this means when the own_ip address is a different family (IPv4 vs IPv6) from the irc server connection, we were listening for connections on the wrong interface. This patch lets us figure out which family is being used, (xfer.network.own_ip's family, or the irc connection's family otherwise) and bind() into the correct family via that family's wildcard address.
2014-08-19xfer: Use hook_connect() for receiving chatsAndrew Potter
fixes #160
2014-05-06xfer: fix problem with option xfer.file.auto_accept_nicks when the server ↵Sébastien Helleu
name contains dots
2014-03-13xfer: Don't use sockaddr_storage for address_lengthAndrew Potter
Hopefully this addresses #25.
2014-03-11xfer: Fix xfer.network.own_ip behaviorAndrew Potter
Fixes #5. xfer shouldn't try to bind() to the own_ip address. Instead, always bind to the same local address that is connected to the irc server, and just change the out_addr if own_ip is used. Also fixes a memory leak in error path.
2014-02-22xfer: remove dead assignment in function xfer_add_cbSebastien Helleu
2014-02-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-01-09xfer: add support of IPv6 for DCC chat/file (patch #7992)Andrew Potter
2014-01-06xfer: use same infolist for hook and signals (patch #7974)Andrew Potter
2014-01-06xfer: add option xfer.file.auto_check_crc32 (patch #7963)Sebastien Helleu
Thanks to Andrew Potter for the patch.
2014-01-02xfer: add "network" prefix for (dis)connection messages in xfer chat bufferSebastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-11-09xfer: load plugin even if options can not be read in xfer.conf (with warnings)Sebastien Helleu
2013-03-25xfer: add option xfer.file.auto_accept_nicks (patch #7962)Andrew Potter
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-01-24core: display error number and string in some network errorsSebastien Helleu
Error number and string is now displayed when an error is returned by one of these functions: socket, setsockopt, fcntl, pipe, accept, bind, listen, mkfifo.
2013-01-01core: update copyright datesSebastien Helleu
2012-12-17xfer: add missing tags in DCC chat messages: nick_xxx, prefix_nick_ccc, logNSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-11-27xfer: display remote IP address for DCC chat/file (task #12289) (patch from ↵Sebastien Helleu
Nils Görs)
2012-10-18core: add option "-quit" for command /upgrade (save session and quit without ↵Sebastien Helleu
restarting WeeChat, for delayed restoration)
2012-08-02core: update description of plugins and translate them in output of /pluginSebastien Helleu
2012-01-08core: update copyright datesSebastien Helleu
2011-11-19xfer: display origin of xfer in core and xfer buffers (task #10956)Sebastien Helleu
2011-10-26core: remove unneeded whitespaceSebastien Helleu
2011-01-28Do not close chat buffers when removing xfer from list (bug #32271)Sebastien Helleu
2011-01-01Update copyright datesSebastien Helleu
2010-11-10Fix dcc file transfer for large files (more than 4 GB) on 32-bit systems ↵Sebastien Helleu
(bug #31531) This commit fixes another bug when file is sent: sometimes transfer was still active although file was successfully sent.
2010-10-31Remove unused variablesSebastien Helleu
2010-09-27Reset infolist item cursor in callbacks for signals sending infolist pointerSebastien Helleu
2010-09-17Add optional plugin name for command /debug dump and signal "debug_dump"Sebastien Helleu
2010-06-22Update licenses and copyrights, add missing author names in sourcesSebastien Helleu