- Timestamp:
- 2015-02-20T22:50:54Z (10 years ago)
- Branches:
- master
- Children:
- 0b9daac, 3d45471, 7733b8c
- Parents:
- af359b4
- git-author:
- Indent <please@…> (19-02-15 05:47:20)
- git-committer:
- dequis <dx@…> (20-02-15 22:50:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dcc.h
raf359b4 r5ebff60 23 23 */ 24 24 25 /* 25 /* 26 26 * DCC SEND 27 27 * … … 39 39 * enabled by default. Note that this also means that packets may be as large 40 40 * as the maximum segment size. 41 */ 41 */ 42 42 43 43 #ifndef _DCC_H … … 61 61 */ 62 62 int fd; 63 63 64 64 /* 65 65 * IDs returned by b_input_add for watch_ing over the above socket. … … 67 67 gint watch_in; /* readable */ 68 68 gint watch_out; /* writable */ 69 69 70 70 /* the progress watcher cancels any file transfer if nothing happens within DCC_MAX_STALL */ 71 71 gint progress_timeout; … … 76 76 */ 77 77 size_t bytes_sent; 78 78 79 79 /* 80 80 * Handle the wonderful sadly-not-deprecated ACKs. … … 82 82 guint32 acked; 83 83 int acked_len; 84 84 85 85 /* imc's handle */ 86 86 file_transfer_t *ft; … … 89 89 struct sockaddr_storage saddr; 90 90 91 /* set to true if the protocol has finished 91 /* set to true if the protocol has finished 92 92 * (i.e. called imcb_file_finished) 93 93 */ … … 95 95 } dcc_file_transfer_t; 96 96 97 file_transfer_t *dccs_send_start( struct im_connection *ic, irc_user_t *iu, const char *file_name, size_t file_size);98 void dcc_canceled( file_transfer_t *file, char *reason);99 gboolean dccs_send_write( file_transfer_t *file, char *data, unsigned int data_size);100 file_transfer_t *dcc_request( struct im_connection *ic, char* const* ctcp);101 void dcc_finish( file_transfer_t *file);102 void dcc_close( file_transfer_t *file);103 gboolean dccs_recv_start( file_transfer_t *ft);97 file_transfer_t *dccs_send_start(struct im_connection *ic, irc_user_t *iu, const char *file_name, size_t file_size); 98 void dcc_canceled(file_transfer_t *file, char *reason); 99 gboolean dccs_send_write(file_transfer_t *file, char *data, unsigned int data_size); 100 file_transfer_t *dcc_request(struct im_connection *ic, char* const* ctcp); 101 void dcc_finish(file_transfer_t *file); 102 void dcc_close(file_transfer_t *file); 103 gboolean dccs_recv_start(file_transfer_t *ft); 104 104 105 105 #endif
Note: See TracChangeset
for help on using the changeset viewer.