summaryrefslogtreecommitdiff
path: root/delphi/Awkward/include/reserve/m_nat.inc
blob: 9502418652d9a7cd35549921009f2771c4b0f30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}