Mercurial > pidgin
comparison libgaim/protocols/oscar/peer.h @ 14267:645598a4ec04
[gaim-migrate @ 16949]
Change gaim_network_listen() and gaim_network_listen_range()
to be cancelable. This doesn't actually help anything yet,
since the gaim_upnp_functions() are not yet cancelable. But
the framework is there, and the PRPLs shouldn't need any
additional changes.
Still to go:
gaim_upnp_everything()
gaim_url_fetch()
gaim_srv_resolve()
Let me know if there are others
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 21 Aug 2006 07:47:03 +0000 |
parents | baff095b146c |
children | 648e33275d9d |
comparison
equal
deleted
inserted
replaced
14266:63ef6342db05 | 14267:645598a4ec04 |
---|---|
24 | 24 |
25 #ifndef _PEER_H_ | 25 #ifndef _PEER_H_ |
26 #define _PEER_H_ | 26 #define _PEER_H_ |
27 | 27 |
28 #include "ft.h" | 28 #include "ft.h" |
29 #include "network.h" | |
30 #include "proxy.h" | |
29 | 31 |
30 typedef struct _OdcFrame OdcFrame; | 32 typedef struct _OdcFrame OdcFrame; |
31 typedef struct _OftFrame OftFrame; | 33 typedef struct _OftFrame OftFrame; |
32 typedef struct _ProxyFrame ProxyFrame; | 34 typedef struct _ProxyFrame ProxyFrame; |
33 typedef struct _NewPeerConnectionData NewPeerConnectionData; | |
34 typedef struct _PeerConnection PeerConnection; | 35 typedef struct _PeerConnection PeerConnection; |
35 | 36 |
36 #define PEER_CONNECTION_FLAG_INITIATED_BY_ME 0x0001 | 37 #define PEER_CONNECTION_FLAG_INITIATED_BY_ME 0x0001 |
37 #define PEER_CONNECTION_FLAG_APPROVED 0x0002 | 38 #define PEER_CONNECTION_FLAG_APPROVED 0x0002 |
38 #define PEER_CONNECTION_FLAG_TRIED_VERIFIEDIP 0x0004 | 39 #define PEER_CONNECTION_FLAG_TRIED_VERIFIEDIP 0x0004 |
130 guint32 unknown; /* 6 */ | 131 guint32 unknown; /* 6 */ |
131 guint16 flags; /* 10 */ | 132 guint16 flags; /* 10 */ |
132 ByteStream payload; /* 12 */ | 133 ByteStream payload; /* 12 */ |
133 }; | 134 }; |
134 | 135 |
135 struct _NewPeerConnectionData | |
136 { | |
137 GaimConnection *gc; | |
138 PeerConnection *conn; | |
139 }; | |
140 | |
141 struct _PeerConnection | 136 struct _PeerConnection |
142 { | 137 { |
143 OscarData *od; | 138 OscarData *od; |
144 OscarCapability type; | 139 OscarCapability type; |
145 char *sn; | 140 char *sn; |
160 | 155 |
161 /** | 156 /** |
162 * This is only used when the peer connection is being established. | 157 * This is only used when the peer connection is being established. |
163 */ | 158 */ |
164 GaimProxyConnectData *connect_data; | 159 GaimProxyConnectData *connect_data; |
160 | |
161 /** | |
162 * This is only used when the peer connection is being established. | |
163 */ | |
164 GaimNetworkListenData *listen_data; | |
165 | |
165 | 166 |
166 /** | 167 /** |
167 * This is only used when the peer connection is being established. | 168 * This is only used when the peer connection is being established. |
168 */ | 169 */ |
169 guint connect_timeout_timer; | 170 guint connect_timeout_timer; |