summaryrefslogtreecommitdiff
path: root/delphi/Awkward/include/reserve/m_nat.inc
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-21 14:14:52 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-21 14:14:52 +0000
commitcb4a46e7fbe62d788e66ed6121c717a2d22a4d7c (patch)
tree30df260fdc5a1b5a7049c2f8cac8b7ef17513d6d /delphi/Awkward/include/reserve/m_nat.inc
parent19b6f534d2e784a1e120bf52c4aa07004798f473 (diff)
svn.miranda.im is moving to a new home!
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'delphi/Awkward/include/reserve/m_nat.inc')
-rw-r--r--delphi/Awkward/include/reserve/m_nat.inc30
1 files changed, 30 insertions, 0 deletions
diff --git a/delphi/Awkward/include/reserve/m_nat.inc b/delphi/Awkward/include/reserve/m_nat.inc
new file mode 100644
index 0000000..9502418
--- /dev/null
+++ b/delphi/Awkward/include/reserve/m_nat.inc
@@ -0,0 +1,30 @@
+{$IFNDEF M_NAT}
+{$DEFINE M_NAT}
+
+type
+ NETLIBIPINFO = record
+ cbSize:integer;
+ szIP :PAnsiChar; // IP the server returned, it maybe in any form, but assume IP4
+ szSite:PAnsiChar; // where I got the IP from
+ end;
+
+const
+{
+ wParam=0
+ lParam=(LPARAM)&NETLIBIPINFO
+
+ Hook is fired when the IP is fetched from the server, it maybe still the old IP and I have
+ no way of knowing you have the old IP or the newer one (or if it is new) so just check
+ with the current and update if you need to.
+}
+ ME_NETLIB_EXTERNAL_IP_FETCHED = 'Miranda/Netlib/IpFetched';
+
+{
+ wParam=0
+ lParam=0
+
+ Forces the IP check, this will create a new thread to query the HTTP server and
+ so you may get a few more updates (no more than 2 in a row though)
+}
+ MS_NETLIB_EXTERNAL_IP_FORCECHECK = 'Miranda/Netlib/ForceCheck';
+{$ENDIF}