Very, very sleek implementations guys! Thanks!
I found that connecting to a hostname does not work either.
Private Function getLocalIP() As String
Dim localHost As String
Dim IPHEntry As IPHostEntry
Dim IPAdd() As IPAddress
localHost = Dns.GetHostName()
IPHEntry = Dns.GetHostEntry(localHost)
IPAdd = IPHEntry.AddressList
Try
For i = 0 To IPAdd.GetUpperBound(0)
If IPAdd(i).AddressFamily = Sockets.AddressFamily.InterNetwork Then
Return IPAdd(i).ToString
End If
Next
Catch ex As Exception
Return "127.0.0.1"
End Try
End Function
dblock, I have a couple questions for you:
1. How did you determine your timeouts? I see that a timeout for copying a file is 20 minutes, remove a snap is 10 minutes.
2. You mention that you still implement synchronous WAITs, and it looks like you just do a CHECK COMPLETION on each job and time out if necessary. Is there any advantage to doing callbacks instead?
3. Take a look at my question and implementation of VIX, I would appreciate any feedback:
http://communities.vmware.com/thread/187966?tstart=0