IEnumerator ping() { while (keepPing && true) { WritePacket wp = PacketFunc.CreateNullPacket(); client.Send(wp.ToArray()); yield return(new WaitForSeconds(8)); } }
public void Send(Agent agent) { agent.Send(wp.ToArray()); }