AdvC++ - drugie zadanie zrobione
This commit is contained in:
parent
9ca1a1d6ad
commit
9199cff785
1 changed files with 10 additions and 5 deletions
|
|
@ -5,11 +5,16 @@
|
|||
class Streamer {
|
||||
public:
|
||||
struct StreamInfo {
|
||||
std::string sourceAddress_;
|
||||
std::string destinationAddress_;
|
||||
uint16_t sourcePort_;
|
||||
uint16_t destinationPort_;
|
||||
uint16_t vlan_;
|
||||
|
||||
using ip_addr = std::string;
|
||||
using port = uint16_t;
|
||||
using vlan = uint16_t;
|
||||
|
||||
ip_addr sourceAddress_;
|
||||
ip_addr destinationAddress_;
|
||||
port sourcePort_;
|
||||
port destinationPort_;
|
||||
vlan vlan_;
|
||||
};
|
||||
|
||||
Streamer(std::initializer_list<StreamInfo> info) : info_{info}{
|
||||
|
|
|
|||
Loading…
Reference in a new issue