Move the HTML5 remote desktop client to src/tools.
[haiku.git] / src / servers / app / drawing / interface / html5 / NetSender.h
blobdbc415ee3ee2e08e503db27006f2b19aedf42a5e
1 /*
2 * Copyright 2009, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Lotz <mmlr@mlotz.ch>
7 */
8 #ifndef NET_SENDER_H
9 #define NET_SENDER_H
11 #include <OS.h>
12 #include <SupportDefs.h>
14 class BNetEndpoint;
15 class StreamingRingBuffer;
17 class NetSender {
18 public:
19 NetSender(BNetEndpoint *endpoint,
20 StreamingRingBuffer *source);
21 ~NetSender();
23 private:
24 static int32 _NetworkSenderEntry(void *data);
25 status_t _NetworkSender();
27 BNetEndpoint * fEndpoint;
28 StreamingRingBuffer * fSource;
30 thread_id fSenderThread;
31 bool fStopThread;
34 #endif // NET_SENDER_H