/* * Copyright 2009, Haiku, Inc. * Distributed under the terms of the MIT License. * * Authors: * Michael Lotz */ #ifndef NET_SENDER_H #define NET_SENDER_H #include #include class BNetEndpoint; class StreamingRingBuffer; class NetSender { public: NetSender(BNetEndpoint *endpoint, StreamingRingBuffer *source); ~NetSender(); private: static int32 _NetworkSenderEntry(void *data); status_t _NetworkSender(); BNetEndpoint * fEndpoint; StreamingRingBuffer * fSource; thread_id fSenderThread; bool fStopThread; }; #endif // NET_SENDER_H