06-20-2017 11:19 AM
Hi all.
Firstly i want to apologize if this subject was in other posts.
I have an table in Labview and i want to send it into C#( visual studio 2015).From what i read, i need a connection TCP/IP where C# must to start the server and client fromLabview must to connect.Can you say me, please, how to write in console line in C# these values?I don't know how to acces them.
C# code
StreamReader streamReader;
NetworkStream networkStream;
TcpListener tcpListener = new TcpListener(8006);
tcpListener.Start();
Console.WriteLine("The Server has started on port 8006");
Socket serverSocket = tcpListener.AcceptSocket();
Now i try to write the values from the photo for test because is simpler than table, but nothing.
Solved! Go to Solution.
06-20-2017 04:44 PM
I do not see reading data in your code.
I liked second link in google "tcplistener c#": https://stackoverflow.com/questions/19387086/how-to-set-up-tcplistener-to-always-listen-and-accept-m...
client.Receive(data)
"client" is instead of your "serverSocket", "data" is buffer for data