public void SendText(string text)
 {
     byte[] buffer = Encoding.UTF8.GetBytes(text);
     rscMgr.Write(buffer, 0, buffer.Length);
     sb.AppendLine(string.Format("Sent: {0}", text));
     MainView.SetOutputText(sb.ToString());
 }
Beispiel #2
0
        private void SentText(string s)
        {
            s += "\r\n";
            byte[] buffer = Encoding.UTF8.GetBytes(s);
            rscMgr.Write(buffer, 0, buffer.Length);
//
//			NSData someData = new NSString(s).Encode(NSStringEncoding.UTF8);
//
//			IntPtr bytes = someData.Bytes;
//			var length = someData.Length;
//
//			//loopbackCount = 0;
//			rscMgr.Write(bytes,length);
            //txCount += length; // JMB make sure stats display is accurrate using new test window
            //[self updateStats:kStatTx];
        }