Author Topic: nrCommNet, ASTM, Socket  (Read 1038 times)

rob

  • Newbie
  • *
  • Posts: 1
    • View Profile
nrCommNet, ASTM, Socket
« on: March 07, 2014, 12:52:26 pm »
Newbie question.

I'm building a .NET client application. How do I configure the NrAstm to use a socket connection rather than the COM port as shown in the demo app?

Thanks

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: nrCommNet, ASTM, Socket
« Reply #1 on: March 09, 2014, 06:17:13 am »
Hello

You can try something like following:

Code: [Select]
    var client = new TcpClient(eHost.Text, (int) ePort.Value);               
    var stream = client.GetStream();
    nrAstm1.MediumObject = stream;

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.