trainings/AdvancedCppV2/Presentation/exercises/streamer/streamer.cpp

23 lines
No EOL
449 B
C++

#include <iostream>
#include <vector>
class Streamer {
public:
struct StreamInfo {
std::string sourceAddress_;
std::string destinationAddress_;
uint16_t sourcePort_;
uint16_t destinationPort_;
uint16_t vlan_;
};
// Write C'tors here
private:
std::vector<StreamInfo> info_;
};
int main() {
Streamer streamer({"192.168.0.0", "192.168.10.24", 5432, 5432, 12});
Streamer streamer2{};
}