public bool Send(string message)
{
#if SILVERLIGHT
byte[] bytes = Encoding.UTF8.GetBytes(message);
#else
byte[] bytes = Encoding.ASCII.GetBytes(message);
#endif
_stream.Write(StartBlock, 0, StartBlock.Length);
_stream.Write(bytes, 0, bytes.Length);
_stream.Write(EndBlock, 0, EndBlock.Length);
_stream.Flush();
if (_version3) {
byte[] rsp = new byte[4];
if (_stream.Read(rsp, 0, 4) != 4)
return false;
return rsp[1] == 0x06;
}
return true;
}