cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
FourTuple Class Reference

#include <nts_types.hpp>

Public Member Functions

 FourTuple ()
 
 FourTuple (LE_Ip4Addr myIp, LE_Ip4Addr theirIp, LE_TcpPort myPort, LE_TcpPort theirPort)
 
bool operator< (const FourTuple &other) const
 

Public Attributes

LE_Ip4Addr myIp
 
LE_Ip4Addr theirIp
 
LE_TcpPort myPort
 
LE_TcpPort theirPort
 

Detailed Description

Definition at line 393 of file nts_types.hpp.

Constructor & Destructor Documentation

◆ FourTuple() [1/2]

FourTuple::FourTuple ( )
inline

Definition at line 399 of file nts_types.hpp.

399 {}

◆ FourTuple() [2/2]

FourTuple::FourTuple ( LE_Ip4Addr  myIp,
LE_Ip4Addr  theirIp,
LE_TcpPort  myPort,
LE_TcpPort  theirPort 
)
inline

Definition at line 400 of file nts_types.hpp.

400  :
LE_TcpPort theirPort
Definition: nts_types.hpp:398
LE_Ip4Addr theirIp
Definition: nts_types.hpp:396
LE_TcpPort myPort
Definition: nts_types.hpp:397
LE_Ip4Addr myIp
Definition: nts_types.hpp:395

Member Function Documentation

◆ operator<()

bool FourTuple::operator< ( const FourTuple other) const
inline

Definition at line 403 of file nts_types.hpp.

403  {
404  if (myIp < other.myIp) {
405  return true;
406  }
407  else if (myIp == other.myIp) {
408  if (theirIp < other.theirIp) {
409  return true;
410  }
411  else if(theirIp == other.theirIp) {
412  if (myPort < other.myPort) {
413  return true;
414  }
415  else if (myPort == other.myPort) {
416  if (theirPort < other.theirPort) {
417  return true;
418  }
419  }
420  }
421  }
422  return false;
423  }

Member Data Documentation

◆ myIp

LE_Ip4Addr FourTuple::myIp

Definition at line 395 of file nts_types.hpp.

◆ myPort

LE_TcpPort FourTuple::myPort

Definition at line 397 of file nts_types.hpp.

◆ theirIp

LE_Ip4Addr FourTuple::theirIp

Definition at line 396 of file nts_types.hpp.

◆ theirPort

LE_TcpPort FourTuple::theirPort

Definition at line 398 of file nts_types.hpp.


The documentation for this class was generated from the following file: