EndPoint represents a (ip, port) source or destination of a socket. More...
#include <EndPoint.h>
Public Member Functions | |
| void | Reset () |
| Clears all fields of this structure to zero. | |
| bool | operator< (const EndPoint &rhs) const |
| sockaddr_in | ToSockAddrIn () const |
| std::string | IPToString () const |
| std::string | ToString () const |
Static Public Member Functions | |
| static EndPoint | FromSockAddrIn (const sockaddr_in &addr) |
Public Attributes | |
| unsigned char | ip [4] |
| The IPv4 address of the endpoint, stored in big-endian. ///. | |
EndPoint represents a (ip, port) source or destination of a socket.
| bool kNet::EndPoint::operator< | ( | const EndPoint & | rhs | ) | const [inline] |
| static EndPoint kNet::EndPoint::FromSockAddrIn | ( | const sockaddr_in & | addr | ) | [inline, static] |
References ip.
Referenced by kNet::Network::ConnectSocket(), kNet::NetworkServer::Process(), kNet::NetworkServer::ReadUDPSocketData(), kNet::Socket::Receive(), and kNet::Socket::ToString().
| sockaddr_in kNet::EndPoint::ToSockAddrIn | ( | ) | const [inline] |
| std::string kNet::EndPoint::IPToString | ( | ) | const [inline] |
| std::string kNet::EndPoint::ToString | ( | ) | const [inline] |
| unsigned char kNet::EndPoint::ip[4] |
The IPv4 address of the endpoint, stored in big-endian. ///.
Referenced by FromSockAddrIn(), IPToString(), operator<(), ToSockAddrIn(), and ToString().
1.7.1