Public Member Functions | Static Public Member Functions | Public Attributes

kNet::EndPoint Struct Reference

EndPoint represents a (ip, port) source or destination of a socket. More...

#include <EndPoint.h>

List of all members.

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. ///.

Detailed Description

EndPoint represents a (ip, port) source or destination of a socket.


Member Function Documentation

bool kNet::EndPoint::operator< ( const EndPoint rhs  )  const [inline]
Todo:
Not IPv6-capable.

References ip.

static EndPoint kNet::EndPoint::FromSockAddrIn ( const sockaddr_in &  addr  )  [inline, static]
sockaddr_in kNet::EndPoint::ToSockAddrIn (  )  const [inline]
Todo:
Not IPv6-capable.

References ip.

Referenced by kNet::Socket::BeginReceive().

std::string kNet::EndPoint::IPToString (  )  const [inline]
Todo:
Not IPv6-capable.

References ip.

Referenced by kNet::Network::ConnectSocket().

std::string kNet::EndPoint::ToString (  )  const [inline]
Todo:
Not IPv6-capable.

References ip.

Referenced by kNet::Socket::ToString().


Member Data Documentation

unsigned char kNet::EndPoint::ip[4]

The IPv4 address of the endpoint, stored in big-endian. ///.

Todo:
Not IPv6-capable.

Referenced by FromSockAddrIn(), IPToString(), operator<(), ToSockAddrIn(), and ToString().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines