summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/AimOscar/file.h')
-rw-r--r--protocols/AimOscar/file.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/protocols/AimOscar/file.h b/protocols/AimOscar/file.h
index 29083d2947..591e86b75b 100644
--- a/protocols/AimOscar/file.h
+++ b/protocols/AimOscar/file.h
@@ -1,6 +1,6 @@
/*
Plugin of Miranda IM for communicating with users of the AIM protocol.
-Copyright (c) 2008-2009 Boris Krasnovskiy
+Copyright (c) 2008-2012 Boris Krasnovskiy
Copyright (C) 2005-2006 Aaron Myles Landwehr
This program is free software; you can redistribute it and/or
@@ -19,6 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef FILE_H
#define FILE_H
+struct CAimProto;
+
struct file_transfer
{
HANDLE hContact;
@@ -28,6 +30,7 @@ struct file_transfer
HANDLE hConn;
HANDLE hResumeEvent;
+ HANDLE hDirectBoundPort;
char* file;
char* message;
@@ -44,6 +47,7 @@ struct file_transfer
unsigned short max_ver;
unsigned short req_num;
+ unsigned short local_port;
bool peer_force_proxy;
bool me_force_proxy;
@@ -54,6 +58,10 @@ struct file_transfer
file_transfer(HANDLE hCont, char* nick, char* cookie);
~file_transfer();
+
+ void listen(CAimProto* ppro);
+ void stop_listen(void);
+
};
struct ft_list_type : OBJLIST <file_transfer>
@@ -62,8 +70,7 @@ struct ft_list_type : OBJLIST <file_transfer>
file_transfer* find_by_handle(HANDLE hContact);
file_transfer* find_by_cookie(char* cookie, HANDLE hContact);
- file_transfer* find_by_ip(unsigned long ip);
- file_transfer* find_suitable(void);
+ file_transfer* find_by_port(unsigned short port);
bool find_by_ft(file_transfer *ft);