This method of the DirectPlayLobby Class creates a DirectPlay address when given a service provider-specific network address. The resulting address contains the GUID of the service provider and data that the service provider can interpret as a network address.
public void createAddress(_Guid spGuid, _Guid addressTypeGuid, String addressString, byte[] addressData, int[] addressSize);
spGuid | The address of the service provider GUID. (In C++, it is a reference to the GUID.) |
addressTypeGuid | The address of a GUID identifying the specific network address type being used. |
addressString | A buffer that the constructed DirectPlay address is to be written to. |
addressData | A buffer containing the specific network address. |
addressSize | The size of the DirectPlay address buffer. Before calling this method, the service provider must initialize addressSize to the size of the buffer. After the method has returned, this parameter will contain the number of bytes written to the address. If the buffer was too small (DPERR_BUFFERTOOSMALL), this parameter will be set to the size required to store the DirectPlay address. |