Hi All
I am having an issue with a Winsock control where I have 2 pcs on the same network. I establish a connection from the first pc to the second pc with the following code:
tcpClient.RemoteHost = "CNNNNNN"
tcpClient.RemotePort = 11542
tcpClient.Connect
I then check the value of the tcpClient.State which is 7. I then call the SendData method
tcpClient.SendData strLocation
The Second PC should then receive the string and display a tif file on it's screen (the string value being passed is the Location of the Tif on the network). This, however, is not working - the SendData call is doing nothing, it doesn't raise an error but it also doesn't send the Location of the Tif to the Second PC.
Code on First (Sender) PC
With frmNewScans
.tcpClient.Close
.tcpClient.RemoteHost = strPCtoConnectTo
.tcpClient.RemotePort = 11542
.tcpClient.Connect
End With
In a Click Event I then have
tcpClient.SendData (CStr(myFile.Path))
tcpClient.Close
In the Second (Receiver) PC Code:
In ConnectionRequest
tcpDisplay.Accept RequestID
In the DataArrival Sub I have
tcpFaxServer.GetData strLocation
Is there anything else I should be looking out for?
Thanks in advance for any tips/suggestions
cmahon
I am having an issue with a Winsock control where I have 2 pcs on the same network. I establish a connection from the first pc to the second pc with the following code:
tcpClient.RemoteHost = "CNNNNNN"
tcpClient.RemotePort = 11542
tcpClient.Connect
I then check the value of the tcpClient.State which is 7. I then call the SendData method
tcpClient.SendData strLocation
The Second PC should then receive the string and display a tif file on it's screen (the string value being passed is the Location of the Tif on the network). This, however, is not working - the SendData call is doing nothing, it doesn't raise an error but it also doesn't send the Location of the Tif to the Second PC.
Code on First (Sender) PC
With frmNewScans
.tcpClient.Close
.tcpClient.RemoteHost = strPCtoConnectTo
.tcpClient.RemotePort = 11542
.tcpClient.Connect
End With
In a Click Event I then have
tcpClient.SendData (CStr(myFile.Path))
tcpClient.Close
In the Second (Receiver) PC Code:
In ConnectionRequest
tcpDisplay.Accept RequestID
In the DataArrival Sub I have
tcpFaxServer.GetData strLocation
Is there anything else I should be looking out for?
Thanks in advance for any tips/suggestions
cmahon