2.Understanding Host ID

ProudNet calls clients connected between servers, hosts. And each host has its unique Host ID.

Each client receives Host ID assigned by server but server itself has a fixed value (Proud.HostID_Server). And host that doesn't exist is Proud.HostID_None.

HostID is Proud.HostID type.

You can also gain IP address of host with Proud.CNetClient.GetPeerInfo(), Proud.CNetServer.GetClientInfo(). However, if client is behind NAT then several IP addresses could be returned. And this is why we recommend you to use HostID only.

그림 2-1Host ID has been assigned.