diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-10 02:02:26 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-10 02:02:26 +0000 |
commit | e4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0 (patch) | |
tree | b69359528adf2716cf3d4a765d3f0f7767565be7 /src/irc/dcc/dcc-rec.h | |
parent | 118f9a11ebfc521198d39fd3048ad462ace696ed (diff) | |
download | irssi-e4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0.zip |
DCC cleanups - split DCC_REC to CHAT|GET|SEND_DCC_RECs. Plugins should
now be able to add whatever new DCC types.
Nick changes affect DCC chats. /WHOIS without parameters works properly
in DCC CHAT queries.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1194 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-rec.h')
-rw-r--r-- | src/irc/dcc/dcc-rec.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-rec.h b/src/irc/dcc/dcc-rec.h new file mode 100644 index 00000000..5f6d5178 --- /dev/null +++ b/src/irc/dcc/dcc-rec.h @@ -0,0 +1,28 @@ +int type; +int orig_type; /* original DCC type that was sent to us - same as type except GET and SEND are swapped */ +time_t created; + +IRC_SERVER_REC *server; +char *servertag; /* for resetting server later if we get disconnected */ +char *mynick; /* my current nick */ +char *nick; + +CHAT_DCC_REC *chat; /* if the request came through DCC chat */ +char *target; /* who the request was sent to - your nick, channel or NULL if you sent the request */ +char *arg; + +IPADDR addr; /* address we're connected in */ +char addrstr[MAX_IP_LEN]; /* in readable form */ +int port; /* port we're connected in */ + +GIOChannel *handle; /* socket handle */ +int tagconn, tagread, tagwrite; +time_t starttime; /* transfer start time */ +unsigned long transfd; /* bytes transferred */ + +unsigned int destroyed:1; /* We're about to destroy this DCC recond */ + +char *databuf; /* buffer for receiving/transmitting data */ +int databufsize; + +GHashTable *module_data; |