OpenDaVINCI  4.16.0
odcore::io::protocol::PCAPProtocol Class Reference

#include <PCAPProtocol.h>

Inheritance diagram for odcore::io::protocol::PCAPProtocol:
Inheritance graph

Public Member Functions

 PCAPProtocol ()
 
virtual ~PCAPProtocol ()
 
virtual void setContainerListener (odcore::io::conference::ContainerListener *cl)
 
virtual void nextString (const string &s)
 
void setStringSender (StringSender *sender)
 
void sendByStringSender (const string &data)
 

Detailed Description

This class implements the PCAP protocol: https://wiki.wireshark.org/Development/LibpcapFileFormat

Constructor & Destructor Documentation

odcore::io::protocol::PCAPProtocol::PCAPProtocol ( )

Constructor.

odcore::io::protocol::PCAPProtocol::~PCAPProtocol ( )
virtual

Member Function Documentation

void odcore::io::protocol::PCAPProtocol::nextString ( const string &  s)
virtual

This method is called whenever a new string occurs.

Parameters
sString that has been occured.

Implements odcore::io::StringListener.

void odcore::io::protocol::AbstractProtocol::sendByStringSender ( const string &  data)
inherited

This method needs to be called by subclasses to actually send some data according to the implemented protocol.

Parameters
dataData to be sent.

References odcore::io::StringSender::send().

Referenced by odcore::io::protocol::StringProtocol::send(), and odcore::io::protocol::NetstringsProtocol::send().

void odcore::io::protocol::PCAPProtocol::setContainerListener ( odcore::io::conference::ContainerListener cl)
virtual

This method sets or unsets a container listener.

Parameters
clContainerListener to be set. If set to NULL, observing is suspended.

Implements odcore::io::conference::ContainerObserver.

Referenced by ~PCAPProtocol().

void odcore::io::protocol::AbstractProtocol::setStringSender ( StringSender sender)
inherited

This method sets the StringSender (implemented by a connection like SerialPort) that can actually send the data.

Parameters
senderStringSender that will send the data.

Referenced by odcore::io::protocol::AbstractProtocol::~AbstractProtocol().