Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630790
dcc.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
dcc.h
View Options
/*
* Copyright (C) 2004-2012 George Yunaev gyunaev@ulduzsoft.com
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at your
* option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*/
#ifndef INCLUDE_IRC_DCC_H
#define INCLUDE_IRC_DCC_H
/*
* This structure keeps the state of a single DCC connection.
*/
struct
irc_dcc_session_s
{
irc_dcc_session_t
*
next
;
irc_dcc_t
id
;
void
*
ctx
;
socket_t
sock
;
/*!< DCC socket */
int
dccmode
;
/*!< Boolean value to differ chat vs send
requests. Changes the cb behavior - when
it is chat, data is sent by lines with
stripped CRLFs. In file mode, the data
is sent as-is */
int
state
;
time_t
timeout
;
FILE
*
dccsend_file_fp
;
unsigned
int
received_file_size
;
unsigned
int
file_confirm_offset
;
struct
sockaddr_in
remote_addr
;
char
incoming_buf
[
LIBIRC_DCC_BUFFER_SIZE
];
unsigned
int
incoming_offset
;
char
outgoing_buf
[
LIBIRC_DCC_BUFFER_SIZE
];
unsigned
int
outgoing_offset
;
port_mutex_t
mutex_outbuf
;
irc_dcc_callback_t
cb
;
};
#endif
/* INCLUDE_IRC_DCC_H */
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 10:24 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
129030
Default Alt Text
dcc.h (1 KB)
Attached To
Mode
R80 StarRuler2-Source
Attached
Detach File
Event Timeline