| | |
| | | /// </summary> |
| | | public void Connect() |
| | | { |
| | | return; |
| | | lock (lockObj) |
| | | { |
| | | if (isConnected) |
| | |
| | | /// <param name="bytes">需要发送的字节</param> |
| | | public void SendMessage(byte[] bytes) |
| | | { |
| | | return; |
| | | #if __IOS__ |
| | | |
| | | #endif |
| | | if (heartBeatLogIdList.Count > 3) |
| | | { |
| | | try |
| | |
| | | } |
| | | try |
| | | { |
| | | if (_tcpClient == null) |
| | | { |
| | | return; |
| | | } |
| | | if (!_tcpClient.Connected) |
| | | { |
| | | return; |
| | | } |
| | | if (_tcpClient.GetStream().CanWrite&& isConnected) |
| | | { |
| | | _tcpClient.GetStream().Write(bytes, 0, bytes.Length); |
| | |
| | | private DateTime heartBeatTime; |
| | | public void HeartBeat() |
| | | { |
| | | return; |
| | | lock (lockObj) |
| | | { |
| | | if (heartBeatThread == null) |