aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llasynchostbyname.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llasynchostbyname.h')
-rw-r--r--linden/indra/newview/llasynchostbyname.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/linden/indra/newview/llasynchostbyname.h b/linden/indra/newview/llasynchostbyname.h
deleted file mode 100644
index 30dedd0..0000000
--- a/linden/indra/newview/llasynchostbyname.h
+++ /dev/null
@@ -1,93 +0,0 @@
1/**
2 * @file llasynchostbyname.h
3 * @brief Wrapper for Windows asychronous DNS lookup functionality
4 *
5 * Copyright (c) 2003-2007, Linden Research, Inc.
6 *
7 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29#ifndef LL_LLASYNCHOSTBYNAME_H
30#define LL_LLASYNCHOSTBYNAME_H
31
32#if LL_WINDOWS
33//
34// Only implemented on Windows
35//
36
37#define LL_WM_HOST_RESOLVED (WM_APP + 1)
38
39typedef void (*LLAsyncHostByNameCallback)(BOOL success, const LLString& domain_name, U32 ip, void*);
40
41class LLAsyncHostByName
42{
43public:
44 LLAsyncHostByName();
45 ~LLAsyncHostByName();
46
47 BOOL startRequest( const LLString& domain_name, LLAsyncHostByNameCallback callback, void* userdata );
48 void handleMessage( const MSG& msg );
49
50 BOOL isPendingRequest() { return (mRequestHandle != 0); }
51 BOOL cancelPendingRequest();
52
53 static void handleMessageCallback(const MSG& msg);
54private:
55 HANDLE mRequestHandle;
56 char mOutputBuffer[ MAXGETHOSTSTRUCT ]; /*Flawfinder: ignore*/
57
58 LLAsyncHostByNameCallback mCallback;
59 void* mUserdata;
60 LLString mDomainName;
61
62};
63
64extern LLAsyncHostByName gAsyncHostByName;
65
66#else // LL_WINDOWS
67
68// MBW -- Replicate this object on top of the posix gethostbyname() API.
69// For now, it will be synchronous.
70
71#include "llstring.h"
72
73typedef void (*LLAsyncHostByNameCallback)(BOOL success, const LLString& domain_name, U32 ip, void*);
74
75class LLAsyncHostByName
76{
77public:
78 LLAsyncHostByName();
79 ~LLAsyncHostByName();
80
81 BOOL startRequest( const LLString& domain_name, LLAsyncHostByNameCallback callback, void* userdata );
82
83 BOOL isPendingRequest() { return FALSE; }
84 BOOL cancelPendingRequest();
85
86private:
87};
88
89extern LLAsyncHostByName gAsyncHostByName;
90
91#endif // !LL_WINDOWS
92
93#endif // LL_LLASYNCHOSTBYNAME_H