blob: 1e9464a7b7e7c4a7636717e1d02e44ec97fbd578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __STREAM_H
#define __STREAM_H
#ifdef WIN32
#include <winsock2.h>
#endif
#include "clist.h"
#include "thread.h"
#include "misc.h"
class cStream : public cListObject, public cThread
{
public:
cStream(int channum, in_addr_t addr, int portnum);
~cStream(void);
bool StartStream(in_addr_t bindaddr);
void StopStream();
private:
void *handle;
SCKT udp_socket;
struct sockaddr_in peer;
int channum;
in_addr_t addr;
int m_portnum;
virtual void Action();
};
#endif
|