Proud::CDirectP2PInfo Class Reference

Information that contains addresses and others for internal P2P communication in ProudNet. Used at CNetClient.GetDirectP2PInfo and so on. More...

Public Member Functions

bool HasBeenHolepunched ()
 

Public Attributes

AddrPort m_localUdpSocketAddr
 
AddrPort m_localToRemoteAddr
 
AddrPort m_remoteToLocalAddr
 

Detailed Description

Information that contains addresses and others for internal P2P communication in ProudNet. Used at CNetClient.GetDirectP2PInfo and so on.

Member Function Documentation

bool Proud::CDirectP2PInfo::HasBeenHolepunched ( )
inline

Is this acquired after P2P hole-punching is completed?

Member Data Documentation

AddrPort Proud::CDirectP2PInfo::m_localToRemoteAddr

Reception address of opponent peer when packets sent through Direct P2P Can be used at socket API sendto()

AddrPort Proud::CDirectP2PInfo::m_localUdpSocketAddr

Local address of UDP socket possessed by CNetClient for it to use direct P2P communication with opponent peer

AddrPort Proud::CDirectP2PInfo::m_remoteToLocalAddr

Transmission address of opponent peer when packets received through Direct P2P Can be used at socket API recvfrom()