Advertisement

Client takes too much time to detect host.

Started by October 29, 2005 12:10 PM
-1 comments, last by lgmcben 19 years, 3 months ago
With my following code, client takes too much time to detect host. Could anyone tell me if I did anything wrong please? '============================================= Private m_Client As Microsoft.DirectX.DirectPlay.Client . . . Dim HostAddress As New Address HostAddress.ServiceProvider = Address.ServiceProviderTcpIp If hostname.Length > 0 Then HostAddress.AddComponent("hostname", hostname) End If If port > 0 Then HostAddress.AddComponent("port", port) End If Dim AppDesc As New ApplicationDescription AppDesc.GuidApplication = m_AppGuid Try m_Client.FindHosts(AppDesc, HostAddress, m_LocalAddress, Nothing, 0, 0, 0, FindHostsFlags.Sync) ' Application description Catch ex As Exception Return End Try '============================================= Thank you /bow

This topic is closed to new replies.

Advertisement