comparison src/protocols/rendezvous/rendezvous.h @ 10321:782c1b564906

[gaim-migrate @ 11528] Some rendezvous changes I've had sitting around for a while. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 05 Dec 2004 21:25:44 +0000
parents
children 8bc7ba019e96
comparison
equal deleted inserted replaced
10320:61852117568f 10321:782c1b564906
1 /**
2 * @file rendezvous.h The Gaim interface to mDNS and peer to peer Jabber.
3 *
4 * gaim
5 *
6 * Gaim is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 *
24 */
25
26 #ifndef _RENDEZVOUS_H_
27 #define _RENDEZVOUS_H_
28
29 #include "internal.h"
30 #include "debug.h"
31
32 #include "mdns.h"
33
34 #define RENDEZVOUS_CONNECT_STEPS 2
35
36 #define UC_UNAVAILABLE 1
37 #define UC_IDLE 2
38
39 typedef struct _RendezvousData {
40 int fd;
41 GHashTable *buddies;
42 GSList *mytxtdata;
43 unsigned short listener_port;
44 int listener;
45 int listener_watcher;
46 } RendezvousData;
47
48 typedef struct _RendezvousBuddy {
49 #if 0
50 guint ttltimer;
51 #endif
52 gchar *firstandlast;
53 gchar *aim;
54 gchar *ipv4; /* String representation of an IPv4 address */
55 gchar *ipv6; /* String representation of an IPv6 address */
56 unsigned short p2pjport;
57 int status;
58 int idle; /**< Current idle time in seconds since the epoch. */
59 gchar *msg; /**< Current status message of this buddy. */
60 int fd; /**< File descriptor of the P2PJ socket. */
61 int watcher; /**< Handle for the watcher of the P2PJ socket. */
62 } RendezvousBuddy;
63
64 #endif /* _RENDEZVOUS_H_ */