DCL
3.7.4
Loading...
Searching...
No Matches
SocketPollThread.h
Go to the documentation of this file.
1
#ifndef __DCL_SOCKET_POLL_THREAD_H__
2
#define __DCL_SOCKET_POLL_THREAD_H__ 20110224
3
4
#ifndef __DCL_POLL_THREAD_H__
5
#include <
dcl/PollThread.h
>
6
#endif
7
8
__DCL_BEGIN_NAMESPACE
9
10
#ifdef __WINNT__
11
class
Socket
;
26
class
DCLCAPI
SocketPollThread
:
protected
PollThread
27
{
28
DECLARE_CLASSINFO
(
SocketPollThread
)
29
public
:
30
SocketPollThread
(
const
char_t
* _name =
NULL
);
31
virtual
~SocketPollThread
();
32
33
void
start()
__DCL_THROWS1
(
SysError
*)
34
{
35
Thread::start();
36
}
37
38
int
join()
39
{
40
return
Thread::join();
41
}
42
43
bool
started()
const
44
{
45
return
Thread::started();
46
}
47
48
thread_t
thread()
const
49
{
50
return
Thread::thread();
51
}
52
53
const
String& name()
const
54
{
55
return
Thread::name();
56
}
57
70
virtual
bool
add(PollAble* _pPollAble,
short
_events)
71
__DCL_THROWS1
(IOException*);
72
78
virtual
bool
remove(PollAble* _pPollAble);
79
84
void
terminate();
85
86
protected
:
87
virtual
int
run
();
88
89
WSAEVENT __pollInterrupt;;
90
};
91
#else
92
typedef
PollThread
SocketPollThread
;
93
#endif
// __WINNT__
94
95
__DCL_END_NAMESPACE
96
97
#endif
// __DCL_SOCKET_POLL_THREAD_H__
NULL
#define NULL
Definition
Config.h:312
DCLCAPI
#define DCLCAPI
Definition
Config.h:95
char_t
wchar_t char_t
Definition
Config.h:247
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:152
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:227
thread_t
pthread_t thread_t
Definition
Object.h:27
PollThread.h
SocketPollThread
__DCL_BEGIN_NAMESPACE typedef PollThread SocketPollThread
Definition
SocketPollThread.h:92
PollThread
Definition
PollThread.h:35
PollThread::run
virtual int run()
Definition
PollThread.cpp:97
Socket
Definition
Socket.h:42
SysError
Definition
Exception.h:63
include
dcl
SocketPollThread.h
Generated by
1.14.0