Back to Site
Loading...
Searching...
No Matches
librats::Peer Struct Reference

UDP peer information. More...

#include <socket.h>

Collaboration diagram for librats::Peer:
[legend]

Public Member Functions

 Peer ()
 
 Peer (const std::string &ip, uint16_t port)
 
bool operator== (const Peer &other) const
 
bool operator!= (const Peer &other) const
 

Public Attributes

std::string ip
 
uint16_t port
 

Detailed Description

UDP peer information.

Definition at line 33 of file socket.h.

Constructor & Destructor Documentation

◆ Peer() [1/2]

librats::Peer::Peer ( )
inline

Definition at line 37 of file socket.h.

◆ Peer() [2/2]

librats::Peer::Peer ( const std::string &  ip,
uint16_t  port 
)
inline

Definition at line 38 of file socket.h.

Member Function Documentation

◆ operator!=()

bool librats::Peer::operator!= ( const Peer other) const
inline

Definition at line 44 of file socket.h.

◆ operator==()

bool librats::Peer::operator== ( const Peer other) const
inline

Definition at line 40 of file socket.h.

References ip, and port.

Member Data Documentation

◆ ip

std::string librats::Peer::ip

Definition at line 34 of file socket.h.

Referenced by operator==().

◆ port

uint16_t librats::Peer::port

Definition at line 35 of file socket.h.

Referenced by operator==().


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