Forum Discussion
2 Replies
- HKosova
Alumni
First, you need to create a TcpClient object using one of the constructors. Then you can call the methods of the created object:
function Test()
{
var oTcpClient = dotNET.System_Net_Sockets.TcpClient.zctor_2();
oTcpClient.Connect_4("www.example.com", 11002); // connect to hostname and port
var oStream = oTcpClient.GetStream();
// ...
} - rbhogavalliOccasional ContributorI am able to figure it out but thanks for the fast response. Got confidence that I can relay on the testcomplete community :)