GPBuddyStatus

GameSpy SDK

GPBuddyStatus

Buddy status.

typedef struct 
{
GPProfile profile;
GPEnum status;
gsi_char statusString[GP_STATUS_STRING_LEN];
gsi_char locationString[GP_LOCATION_STRING_LEN];
unsigned int ip;
int port;
} GPBuddyStatus;

Members

profile
The profile of the buddy.
status
A value of GPEnum which represents the "Status" of the buddy.
statusString
The buddy "Status" in user-readable form.
locationString
URL indicating the location of the buddy. It is of the form “gamename://IP.address:port/extra/info”.
ip
The buddy’s IP address in network byte order (big-endian). This is used for buddy-to-buddy messaging.
port
The buddy’s TCP listening port. If this is 0, the buddy is behind a firewall. This is used for buddy-to-buddy messaging.

Remarks

Possible values for the "status" field are:
GP_ONLINE
GP_OFFLINE
GP_PLAYING
GP_STAGING
GP_CHATTING
See the Status section of GPEnum for details.

Section Reference: Gamespy Presence SDK

See Also: GPEnum, gpGetBuddyStatus