String sentence; try { soc = new Socket("192.168.1.13",8000); JOptionPane.showMessageDialog(null,"connected to server"); for(int i=0;i<89;i++) { dis=new DataInputStream(soc.getInputStream()); sentence=dis.readUTF(); txt_recmsg.removeAll(); txt_recmsg.setText(sentence); i--; } }
try { Object objData = LCDlabel.Text; byte[] byData = System.Text.Encoding.ASCII.GetBytes(objData.ToString()); for (int i = 0; i < m_clientCount; i++) { if (m_workerSocket[i] != null) { if (m_workerSocket[i].Connected) { m_workerSocket[i].Send(byData); } } } } catch (System.Exception) { }
i++
i--
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)