public AsynchronousSocketListener(Schemas.CRCL.Status.CRCLStatusType status, HandleNewCommandDelegate handleNewCommand, int port) { this.status = status; this.handleNewCommand = handleNewCommand; this.port = port; }
private void parseContent(StateObject state) { String ender = "</CRCLStatus>"; int endindex = -1; while ((endindex = content.IndexOf(ender)) > -1) { String statusxml = content.Substring(0, endindex + ender.Length); Schemas.CRCL.Status.CRCLStatusType newStatus = Schemas.CRCL.Utils.FromXML <Schemas.CRCL.Status.CRCLStatusType>(statusxml); if (newStatus != null) { updateStatus(newStatus); } content = content.Substring(endindex + ender.Length); state.sb.Clear(); state.sb.Append(content); } }
private static void updateStatus(Schemas.CRCL.Status.CRCLStatusType newStatus) { status = newStatus; showStatus(); }
private static void updateStatus(Schemas.CRCL.Status.CRCLStatusType newStatus) { status = newStatus; showStatus (); }