haiku/src/servers/net/AutoconfigLooper.h
Axel Dörfler fb81684f81 The beginnings of automatic configuration of network devices using DHCP; this is
currently only triggered when there is no configuration file - it can't be configured
this way yet.
All DHCP currently does is to send a UDP broadcast DHCP discover message. More to come.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-06 19:00:00 +00:00

34 lines
642 B
C++

/*
* Copyright 2006, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
*/
#ifndef AUTOCONFIG_LOOPER_H
#define AUTOCONFIG_LOOPER_H
#include <Looper.h>
#include <Messenger.h>
#include <String.h>
class AutoconfigLooper : public BLooper {
public:
AutoconfigLooper(BMessenger target, const char* device);
virtual ~AutoconfigLooper();
virtual void MessageReceived(BMessage* message);
BMessenger Target() const { return fTarget; }
private:
void _ReadyToRun();
BMessenger fTarget;
BString fDevice;
};
#endif // AUTOCONFIG_LOOPER_H