8 #ifndef PROTOCOLS_PROTOCOLLOGIC_H_ 9 #define PROTOCOLS_PROTOCOLLOGIC_H_ 16 #include "../GlobalBpiLib.hpp" 17 #include "MessageTypes.h" 25 std::vector<EthernetMessage*> protocol_messages;
26 std::deque<std::string> control_messages;
28 pthread_mutex_t _mutex;
31 void _runProtoLogic();
32 void _initializeProtocol();
34 virtual Port* _createPort(
int i);
35 virtual void _executeProtocolLogic();
36 virtual void _handleControlMessages();
37 virtual void _handleControlMessage(std::string cmdId, std::string cmd);
38 virtual void _handleControlMessageFI(std::string cmdId, std::string cmd);
45 static void * protoLogicEntry(
void * This);
49 void controlInput(std::string input);
void _sendMessage(EthernetMessage *msg, int outPorts)
Definition: ProtocolLogic.cpp:147
Represents an BananaPi R1 ethernet port, starting an ingress port (pcap listener) as well as an egres...
Definition: Port.h:27
Custom bpi printer class.
Definition: GlobalBpiLib.hpp:41
Default implementation of the logic of a protocol implementation.
Definition: ProtocolLogic.h:22
BpiOutStream bpiout
Definition: ProtocolLogic.h:39
BpiOutStream bpierr
Definition: ProtocolLogic.h:40
virtual void sendMessage(EthernetMessage *msg, int outPorts)
Definition: ProtocolLogic.cpp:171
Ethernet v2 message type.
Definition: MessageTypes.h:56