Home
last modified time | relevance | path

Searched refs:ProtoChannel (Results 1 – 25 of 25) sorted by relevance

/dports/net/norm/norm-1.5r6/protolib/src/common/
H A DprotoChannel.cpp11 const ProtoChannel::Handle ProtoChannel::INVALID_HANDLE = INVALID_HANDLE_VALUE;
15 const ProtoChannel::Handle ProtoChannel::INVALID_HANDLE = -1;
18 ProtoChannel::ProtoChannel() in ProtoChannel() function in ProtoChannel
30 ProtoChannel::~ProtoChannel() in ~ProtoChannel()
41 bool ProtoChannel::SetNotifier(ProtoChannel::Notifier* theNotifier) in SetNotifier()
84 bool ProtoChannel::UpdateNotification() in UpdateNotification()
101 bool ProtoChannel::SetBlocking(bool blocking) in SetBlocking()
H A DprotoDispatcher.cpp78 ProtoDispatcher::ChannelStream::ChannelStream(ProtoChannel& theChannel) in ChannelStream()
164 bool ProtoDispatcher::UpdateChannelNotification(ProtoChannel& theChannel,
180 if (0 != (notifyFlags & ProtoChannel::NOTIFY_INPUT))
193 else if (0 == (notifyFlags & ProtoChannel::NOTIFY_INPUT))
207 if (0 != (notifyFlags & ProtoChannel::NOTIFY_OUTPUT))
220 else if (0 == (notifyFlags & ProtoChannel::NOTIFY_OUTPUT))
1177 ProtoChannel& theChannel = nextChannelStream->GetChannel();
1181 theChannel.OnNotify(ProtoChannel::NOTIFY_INPUT);
1186 theChannel.OnNotify(ProtoChannel::NOTIFY_OUTPUT);
1537 theChannel.OnNotify(ProtoChannel::NOTIFY_INPUT);
[all …]
H A DprotoFile.cpp142 return ProtoChannel::Open(); in Open()
164 ProtoChannel::Close(); in Close()
/dports/net/norm/norm-1.5r6/protolib/include/
H A DprotoChannel.h25 class ProtoChannel
28 virtual ~ProtoChannel();
82 virtual bool UpdateChannelNotification(ProtoChannel& theChannel, in UpdateChannelNotification()
89 bool SetNotifier(ProtoChannel::Notifier* theNotifier);
125 void OnNotify(ProtoChannel::Notification theNotification) in OnNotify()
146 …bool SetListener(listenerType* theListener, void(listenerType::*eventHandler)(ProtoChannel&, Notif… in SetListener() argument
158 ProtoChannel();
170 virtual void on_event(ProtoChannel& theChannel, Notification theNotification) = 0;
178 void(listenerType::*eventHandler)(ProtoChannel&, Notification)) in LISTENER_TYPE() argument
180 void on_event(ProtoChannel& theChannel, Notification theNotification) in on_event()
[all …]
H A DprotoDetour.h15 class ProtoDetour : public ProtoChannel
44 return ProtoChannel::Open();
46 virtual bool IsOpen() {return ProtoChannel::IsOpen();} in IsOpen()
49 virtual void Close() {ProtoChannel::Close();} in Close()
80 void DefaultEventHandler(ProtoChannel& theChannel, in DefaultEventHandler()
H A DprotoCap.h14 class ProtoCap : public ProtoChannel
32 {return ProtoChannel::Open();}
34 {return ProtoChannel::IsOpen();} in IsOpen()
39 ProtoChannel::Close(); in Close()
H A DprotoSerial.h11 class ProtoSerial : public ProtoChannel
46 return ProtoChannel::Open();
49 {return ProtoChannel::IsOpen();} in IsOpen()
53 {ProtoChannel::Close();} in Close()
H A DprotoVif.h12 class ProtoVif : public ProtoChannel
26 {return ProtoChannel::Open();} in Open()
29 {ProtoChannel::Close();} in Close()
H A DprotoDispatcher.h160 public ProtoChannel::Notifier
441 bool UpdateChannelNotification(ProtoChannel& theChannel,
551 ChannelStream(ProtoChannel& theChannel);
552 ProtoChannel& GetChannel() {return *channel;} in GetChannel()
553 void SetChannel(ProtoChannel& theChannel) {channel = &theChannel;} in SetChannel()
555 ProtoChannel* channel;
557 ChannelStream* GetChannelStream(ProtoChannel& theChannel);
H A DprotoNet.h44 class Monitor : public ProtoChannel
53 {return ProtoChannel::Open();} in Open()
56 {ProtoChannel::Close();} in Close()
H A DprotoFile.h53 class ProtoFile : public ProtoChannel
78 return ((NULL != file_ptr) && ProtoChannel::IsOpen()); in IsOpen()
80 return ((descriptor >= 0) && ProtoChannel::IsOpen()); in IsOpen()
H A DprotoApp.h49 ProtoChannel::Notifier& GetChannelNotifier() in GetChannelNotifier()
50 {return static_cast<ProtoChannel::Notifier&>(dispatcher);} in GetChannelNotifier()
/dports/net/norm/norm-1.5r6/protolib/examples/
H A DnetExample.cpp28 void MonitorEventHandler(ProtoChannel& theChannel,
29 ProtoChannel::Notification theNotification);
77 monitor->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
101 void NetExample::MonitorEventHandler(ProtoChannel& theChannel, in MonitorEventHandler()
102 ProtoChannel::Notification theNotification) in MonitorEventHandler()
104 if (ProtoChannel::NOTIFY_INPUT == theNotification) in MonitorEventHandler()
H A DvifLan.cpp70 void OnOutboundPkt(ProtoChannel& theChannel,
71 ProtoChannel::Notification notifyType);
72 void OnInboundPkt(ProtoChannel& theChannel,
73 ProtoChannel::Notification notifyType);
148 vif->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
187 void VifLanApp::OnOutboundPkt(ProtoChannel& theChannel, in OnOutboundPkt()
188 ProtoChannel::Notification notifyType) in OnOutboundPkt()
H A DdetourExample.cpp29 void DetourEventHandler(ProtoChannel& theChannel,
30 ProtoChannel::Notification theNotification);
122 detour->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
248 void DetourExample::DetourEventHandler(ProtoChannel& theChannel, in DetourEventHandler()
249 ProtoChannel::Notification theNotification) in DetourEventHandler()
251 if (ProtoChannel::NOTIFY_INPUT == theNotification) in DetourEventHandler()
H A DserialExample.cpp35 void OnSerialInput(ProtoChannel& theChannel,
36 ProtoChannel::Notification notifyType);
138 serial->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
267 void SerialApp::OnSerialInput(ProtoChannel& theChannel, in OnSerialInput()
268 ProtoChannel::Notification notifyType) in OnSerialInput()
270 if (ProtoChannel::NOTIFY_INPUT != notifyType) return; in OnSerialInput()
H A DprotoCapExample.cpp39 void OnReceive(ProtoChannel& theChannel,
40 ProtoChannel::Notification notifyType);
177 cap_rcvr->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
387 void ProtoCapExample::OnReceive(ProtoChannel& theChannel, in OnReceive()
388 ProtoChannel::Notification notifyType) in OnReceive()
390 if (ProtoChannel::NOTIFY_INPUT == notifyType) in OnReceive()
H A DvifExample.cpp75 void OnOutboundPkt(ProtoChannel& theChannel,
76 ProtoChannel::Notification notifyType);
77 void OnInboundPkt(ProtoChannel& theChannel,
78 ProtoChannel::Notification notifyType);
246 vif->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
249 cap->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
735 void VifExampleApp::OnOutboundPkt(ProtoChannel& theChannel, in OnOutboundPkt()
736 ProtoChannel::Notification notifyType) in OnOutboundPkt()
809 void VifExampleApp::OnInboundPkt(ProtoChannel& theChannel, in OnInboundPkt()
810 ProtoChannel::Notification notifyType) in OnInboundPkt()
[all …]
H A DprotoFileExample.cpp49 void OnFileEvent(ProtoChannel& theChannel,
50 ProtoChannel::Notification notifyType);
257 void ProtoFileExample::OnFileEvent(ProtoChannel& theChannel, in OnFileEvent()
258 ProtoChannel::Notification notifyType) in OnFileEvent()
H A Darposer.cpp43 void OnInboundPkt(ProtoChannel& theChannel,
44 ProtoChannel::Notification notifyType);
140 cap->SetNotifier(static_cast<ProtoChannel::Notifier*>(&dispatcher)); in OnStartup()
344 void ArposerApp::OnInboundPkt(ProtoChannel& theChannel, in OnInboundPkt()
345 ProtoChannel::Notification notifyType) in OnInboundPkt()
348 if (ProtoChannel::NOTIFY_INPUT != notifyType) return; in OnInboundPkt()
/dports/net/norm/norm-1.5r6/protolib/src/unix/
H A DunixVif.cpp159 if (!ProtoChannel::Open()) in Open()
173 ProtoChannel::Close(); in Close()
/dports/net/norm/norm-1.5r6/include/
H A DnormSession.h76 ProtoChannel::Notifier* channelNotifier = NULL);
99 ProtoChannel::Notifier* GetChannelNotifier() const {return channel_notifier;} in GetChannelNotifier()
109 ProtoChannel::Notifier* channel_notifier;
589 void OnPktCapture(ProtoChannel& theChannel,
590 ProtoChannel::Notification notifyType);
/dports/net/norm/norm-1.5r6/protolib/src/win32/
H A Dwin32Vif.cpp289 if (!ProtoChannel::Open()) in Open()
303 ProtoChannel::Close(); in Close()
/dports/net/norm/norm-1.5r6/src/common/
H A DnormSession.cpp2180 void NormSession::OnPktCapture(ProtoChannel& theChannel, in OnPktCapture()
2181 ProtoChannel::Notification notifyType) in OnPktCapture()
2184 if (ProtoChannel::NOTIFY_INPUT != notifyType) return; in OnPktCapture()
5106 ProtoChannel::Notifier* channelNotifier) in NormSessionMgr()
H A DnormApi.cpp214 static_cast<ProtoChannel::Notifier*>(&dispatcher)), in NormInstance()