diff options
author | ulim <a.sporto+bee@gmail.com> | 2007-12-03 15:28:45 +0100 |
---|---|---|
committer | ulim <a.sporto+bee@gmail.com> | 2007-12-03 15:28:45 +0100 |
commit | 2ff20765990c756533957e8da9c7c29dd3102e79 (patch) | |
tree | 8d19ceb1490866feee355ba9a098d7e4be6eea53 /dcc.h | |
parent | 2c2df7dd91930345a9b22a8bb61327d1dcc7e3d5 (diff) |
Intermediate commit. Sending seems to work. TODOs:
* move from out_of_data to is_writable, eliminate buffers
* implement "transfers reject [id]"
* documentation in commands.xml
* implement throughput and cummulative throughput boundaries
* feature discovery before sending
* implement sending over a proxy
(proxy discovery, socks5 client handshake for sending, activate message)
* integrate toxik-mek-ft
Diffstat (limited to 'dcc.h')
-rw-r--r-- | dcc.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -111,9 +111,12 @@ typedef struct dcc_file_transfer { */ size_t bytes_sent; - /* imcb's handle */ + /* imc's handle */ file_transfer_t *ft; + /* if we're receiving, this is the sender's socket address */ + struct sockaddr_storage saddr; + } dcc_file_transfer_t; file_transfer_t *dccs_send_start( struct im_connection *ic, char *user_nick, char *file_name, size_t file_size ); @@ -122,4 +125,5 @@ void dcc_canceled( file_transfer_t *file, char *reason ); gboolean dccs_send_write( file_transfer_t *file, gpointer data, unsigned int data_size ); +file_transfer_t *dcc_request( struct im_connection *ic, char *line ); #endif |