7 #ifndef __netsignal_Client_h__ 8 #define __netsignal_Client_h__ 15 class FE_DL_EXPORT ClientI:
16 virtual public Component,
17 public CastableAs<ClientI>
20 virtual void setScope(sp<Scope> spScope) = 0;
21 virtual void addLayout(sp<Layout> spLayout) = 0;
22 virtual void start(sp<SignalerI> spSignalerI,
24 unsigned short a_port,
25 sp<Layout> spPollLayout,
26 Socket::Transport transport=Socket::e_tcp,
27 String ioPriority=
"normal") = 0;
28 virtual void stop(
void) = 0;
29 virtual BWORD receiving(
void) = 0;
32 class BSDClient :
public ClientI
36 virtual ~BSDClient(
void);
38 virtual void setScope(sp<Scope> spScope);
39 virtual void addLayout(sp<Layout> spLayout);
40 virtual void start(sp<SignalerI> spSignalerI,
42 unsigned short a_port,
43 sp<Layout> spPollLayout,
44 Socket::Transport transport=Socket::e_tcp,
45 String ioPriority=
"normal");
46 virtual void stop(
void);
47 virtual bool receiving(
void)
48 {
return (m_spChunkReceiver.isValid() &&
49 m_spChunkReceiver->live()); }
52 sp<SignalerI> m_spSignalerI;
54 sp<HandlerI> m_spSignalSender;
55 sp<HandlerI> m_spSignalReceiver;
56 SockAddr m_serverAddr;
57 std::list<sp<Layout> > m_layouts;
59 sp<Layout> m_spPollLayout;
60 sp<ChunkReceiver> m_spChunkReceiver;
61 sp<ChunkSender> m_spChunkSender;
kernel
Definition: namespace.dox:3