public void Update() { server.Update(); SetCurrentClient(server.Client); if (jhiClient != null && currentClient.IsConnected()) { jhiClient.Update(); } if (jorServer != null) { jorServer.Update(); } }
private void OnTimerTick(Object sender, EventArgs args) { server.Update(); SetCurrentClient(server.Client); hexBox1.Invalidate(); if (currentClient.IsConnected() && jhiClient != null) { jhiClient.Update(); StatusLabel.Text = String.Format("Connected - Incoming Buffer {0:X8}", jhiClient.GetUnprocessedDataSize()); } else { StatusLabel.Text = "Not Connected"; } if (jorServer != null) { jorServer.Update(); } }