This project has moved. For the latest updates, please go here.

Encoding in TcpClient?

Dec 7, 2011 at 1:32 PM
Edited Dec 7, 2011 at 1:33 PM

Hi Guys,

I'm trying to use the TcpClient using the example in TVA.Communication.TcpClient

All is well, except for 

static void s_client_ReceiveDataComplete(object sender, EventArgs<byte[], int> e)
{
    Console.WriteLine(string.Format("Received data - {0}.", s_client.TextEncoding.GetString(e.Argument1, 0, e.Argument2)));
}
The data coming back doesn't look like it's formatted correctly using this method and was wondering if this example was outdated.  I searched the project and couldn't find anything relevant to help me on my way.  How can I get the data back in a viewable format?

Thanks

Coordinator
Dec 7, 2011 at 6:24 PM

Example could be outdated for sure, are you using encryption or compression?

Thanks!
Ritchie