diff src/stun.h @ 12756:6ef1cdc26b40

[gaim-migrate @ 15103] Cleanup to STUN code. Fixed endianness. Fixed to work where sizeof(short) != 2 or sizeof(int) != 4. Close the socket when we're done with it. Instead of using a bunch of static variables, pass data around the various callbacks. Don't invoke the specified StunCallback before the initial function has returned. Deal with requerying if the STUN server has changed since last query, or the last query was unsuccessful and 5 minutes have elapsed. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 07 Jan 2006 22:10:18 +0000
parents 5f65a0cca87c
children
line wrap: on
line diff
--- a/src/stun.h	Sat Jan 07 20:06:58 2006 +0000
+++ b/src/stun.h	Sat Jan 07 22:10:18 2006 +0000
@@ -52,6 +52,8 @@
 	GaimStunStatus status;
 	GaimStunNatType type;
 	char publicip[16];
+	char *servername;
+	time_t lookup_time;
 };
 
 typedef void (*StunCallback) (GaimStunNatDiscovery *);