private void Receive() { try { delBroadCastMsg broadCast = new delBroadCastMsg(parent.BroadCastMsg); while (connected == true) { Thread.Sleep(1); if (stream.CanRead == true) { string tmpStr = reader.ReadLine().Decrypt(); if (first) { name = tmpStr.Split('>')[0]; first = false; tmpStr = name + "ㅴ" + tmpStr; } if (tmpStr.Length > 0) { broadCast.BeginInvoke(tmpStr,null,null); } } } } catch (Exception e) { CloseAll(); } }
private void Receive() { try { delBroadCastMsg broadCast = new delBroadCastMsg(parent.BroadCastMsg); while (connected == true) { Thread.Sleep(1); if (stream.CanRead == true) { string tmpStr = reader.ReadLine().Decrypt(); if (first) { name = tmpStr.Split('>')[0]; first = false; tmpStr = name + "ㅴ" + tmpStr; } if (tmpStr.Length > 0) { broadCast.BeginInvoke(tmpStr, null, null); } } } } catch (Exception e) { CloseAll(); } }