Platform SDK: DirectX

DirectPlayLobby3.CreateINetAddress

The DirectPlayLobby3.CreateINetAddress method creates a DirectPlay address for an Internet address.

object.CreateINetAddress(addr As String, _
    port As Long) As DirectPlayAddress

Parameters

object
Object expression that resolves to a DirectPlayLobby3 object.
addr
IP address (for example, "192.168.0.1") or domain name (for example, "microsoft.com").
port
Port to use for communication. Can be 0 to specify the default port. For more information, see TCP/IP.

Return Values

If it succeeds, the method returns a DirectPlayAddress object.

Error Codes

If the method fails, an error is raised and Err.Number may be set to the following value:

DPERR_INVALIDPARAMS