summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer.h
diff options
context:
space:
mode:
authorAndrew Potter <agpotter@gmail.com>2014-01-09 12:48:54 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-01-09 12:48:54 +0100
commit144dc60d0ab062aa5b3943d57f8f6515310f2dd5 (patch)
tree06c0e13ad72be462a3b018cf9905c5af5921ff07 /src/plugins/xfer/xfer.h
parent9040dfbf521b12b675b6f7d5d93bb10767a40f90 (diff)
downloadweechat-144dc60d0ab062aa5b3943d57f8f6515310f2dd5.zip
xfer: add support of IPv6 for DCC chat/file (patch #7992)
Diffstat (limited to 'src/plugins/xfer/xfer.h')
-rw-r--r--src/plugins/xfer/xfer.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/xfer/xfer.h b/src/plugins/xfer/xfer.h
index 2afbd50b3..c4f9758d4 100644
--- a/src/plugins/xfer/xfer.h
+++ b/src/plugins/xfer/xfer.h
@@ -140,8 +140,12 @@ struct t_xfer
char *filename; /* filename */
unsigned long long size; /* file size */
char *proxy; /* proxy to use (optional) */
- unsigned long local_address; /* local IP address */
- unsigned long remote_address; /* remote IP address */
+ struct sockaddr *local_address; /* local IP address */
+ socklen_t local_address_length; /* local sockaddr length */
+ char *local_address_str; /* local IP address as string */
+ struct sockaddr *remote_address; /* remote IP address */
+ socklen_t remote_address_length; /* remote sockaddr length */
+ char *remote_address_str; /* remote IP address as string */
int port; /* remote port */
/* internal data */
@@ -191,6 +195,9 @@ extern struct t_xfer *xfer_search_by_number (int number);
extern struct t_xfer *xfer_search_by_buffer (struct t_gui_buffer *buffer);
extern void xfer_close (struct t_xfer *xfer, enum t_xfer_status status);
extern void xfer_send_signal (struct t_xfer *xfer, const char *signal);
+extern void xfer_set_remote_address (struct t_xfer *xfer,
+ struct sockaddr *address, socklen_t length,
+ char *address_str);
extern void xfer_free (struct t_xfer *xfer);
extern int xfer_add_to_infolist (struct t_infolist *infolist,
struct t_xfer *xfer);