Example code in C# for communicating using TCP with an ES device