This method of the DirectPlay2 Class retrieves the DirectPlay address for a player. The DirectPlay address is a network address for a player using a specific service provider.
public void getPlayerAddress(int playerId, byte[] addressData, int[] addressSize);
playerId | Player ID that the address is being requested for. |
addressData | Address of a buffer where the DirectPlay2 address is to be written. Set this parameter to NULL to request only the size of data. The addressSize parameter will be set to the size required to hold the data. |
addressSize | The size of the buffer before calling this method. After the method returns, this parameter will be set to the size, in bytes, of the group data. If the buffer was too small (DPERR_BUFFERTOOSMALL), then this parameter will be set to the buffer size that is required. |