vfs: check userland buffers before reading them.
[haiku.git] / src / servers / net / AutoconfigClient.h
blob724bc0a1aa499eb248684cf9c32b89e4dc60619c
1 /*
2 * Copyright 2008, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 */
8 #ifndef AUTOCONFIG_CLIENT_H
9 #define AUTOCONFIG_CLIENT_H
12 #include <Handler.h>
13 #include <Messenger.h>
14 #include <String.h>
17 class AutoconfigClient : public BHandler {
18 public:
19 AutoconfigClient(const char* name,
20 BMessenger target, const char* device);
21 virtual ~AutoconfigClient();
23 virtual status_t Initialize();
25 const BMessenger& Target() const { return fTarget; }
26 const char* Device() const { return fDevice.String(); }
28 private:
29 BMessenger fTarget;
30 BString fDevice;
33 #endif // AUTOCONFIG_CLIENT_H