Esempio n. 1
0
        public Pinger(string target, Timeline timeline)
        {
            _target = target;
            _timeline = timeline;

            // �O���t���Ž��B
            _axis = new PingAxis(target);
            _timeline.AddAxis(_axis);

            // Ping�I�u�W�F�N�g��쐬
            _ping = new System.Net.NetworkInformation.Ping();

            _pingOptions = new PingOptions(_ttl, _df);
            _payloadBytes = System.Text.Encoding.ASCII.GetBytes(new string('A', _payloadSize));

            // ���s�������ɌĂ΂��C�x���g�n���h����lj�
            _ping.PingCompleted += new System.Net.NetworkInformation.PingCompletedEventHandler(PingCompleted);
        }
 public PingItem(PingAxis axis, DateTime occurence)
 {
     _axis = axis;
     _occurence = occurence;
 }