summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/file.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-18 21:52:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-18 21:52:06 +0000
commit47e5e82a35999401cc7676cd19a4b8b289a2024c (patch)
tree20449be9036d3d2503b49f4c2ba481be99261c66 /protocols/AimOscar/file.h
parentbb7bf61220abb44c385deabda02daed66e9e2389 (diff)
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@1030 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);