xref: /haiku/src/servers/net/PPPServer.h (revision f2ced752a08ff5d2618826bcd3ae3976c9f3e92e)
1 //-----------------------------------------------------------------------
2 //  This software is part of the OpenBeOS distribution and is covered
3 //  by the OpenBeOS license.
4 //
5 //  Copyright (c) 2004 Waldemar Kornewald, Waldemar.Kornewald@web.de
6 //-----------------------------------------------------------------------
7 
8 #ifndef _PPP_SERVER__H
9 #define _PPP_SERVER__H
10 
11 #include <Handler.h>
12 #include <PPPInterfaceListener.h>
13 
14 class SimpleMessageFilter;
15 
16 
17 class PPPServer : public BHandler {
18 	public:
19 		PPPServer();
20 		virtual ~PPPServer();
21 
22 		virtual void MessageReceived(BMessage *message);
23 			// the SimpleMessageFilter routes ppp_server messages to this handler
24 
25 	private:
26 		void InitInterfaces();
27 		bool AskBeforeDialing(ppp_interface_id id);
28 
29 		void HandleReportMessage(BMessage *message);
30 
31 	private:
32 		SimpleMessageFilter *fFilter;
33 		PPPInterfaceListener *fListener;
34 };
35 
36 
37 #endif
38