xref: /haiku/src/servers/app/drawing/interface/remote/NetSender.h (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
1 /*
2  * Copyright 2009, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Michael Lotz <mmlr@mlotz.ch>
7  */
8 #ifndef NET_SENDER_H
9 #define NET_SENDER_H
10 
11 #include <OS.h>
12 #include <SupportDefs.h>
13 
14 class BNetEndpoint;
15 class StreamingRingBuffer;
16 
17 class NetSender {
18 public:
19 								NetSender(BNetEndpoint *endpoint,
20 									StreamingRingBuffer *source);
21 								~NetSender();
22 
23 private:
24 static	int32					_NetworkSenderEntry(void *data);
25 		status_t				_NetworkSender();
26 
27 		BNetEndpoint *			fEndpoint;
28 		StreamingRingBuffer *	fSource;
29 
30 		thread_id				fSenderThread;
31 		bool					fStopThread;
32 };
33 
34 #endif // NET_SENDER_H
35