File: test019

package info (click to toggle)
pmccabe 2.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 876 kB
  • sloc: ansic: 3,084; cpp: 1,080; sh: 401; makefile: 42
file content (23 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef FLOW_ID_HPP_
#define FLOW_ID_HPP_

#include <comparable.hpp>
#include <tcp_address.hpp>

class FlowID : public Comparable
{
public:
	FlowID(const sockaddr& sourceAddress, const sockaddr& destAddress);
	FlowID(const TCPAddress& sourceAddress, const TCPAddress& destAddress);
	FlowID(const FlowID& flowID);
	~FlowID() throw(); // throw() because of call from a ctor or dtor
	virtual int compareTo(const Comparable& anotherFlowID) const;
	TCPAddress source() const;
	TCPAddress destination() const;
private:
	TCPAddress _source;
	TCPAddress _destination;
};

#endif // FLOW_ID_HPP_