|
|
@ -126,7 +126,7 @@ namespace Rs.Framework
|
|
|
|
byte[] sendData = Encoding.ASCII.GetBytes(content);
|
|
|
|
byte[] sendData = Encoding.ASCII.GetBytes(content);
|
|
|
|
if(m_IsConnected)
|
|
|
|
if(m_IsConnected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Send(sendData);
|
|
|
|
return Send(sendData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -136,7 +136,7 @@ namespace Rs.Framework
|
|
|
|
byte[] sendData = encode.GetBytes(content);
|
|
|
|
byte[] sendData = encode.GetBytes(content);
|
|
|
|
if (m_IsConnected)
|
|
|
|
if (m_IsConnected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Send(sendData);
|
|
|
|
return Send(sendData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|