Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GetRTTAndHopCount funktioniert nicht

Empfohlene Antworten

Veröffentlicht

Hallo :);

ich programmier grad ein Tool, das einige IP-Adressen im Netzwerk anpingen soll.

Das Problem ist, dass die zurückgelieferte Werte RTT und hopCount immer dieselben sind, egal welche Adresse im Netzwerk angepingt wird.

RTT ist immer 0

hopCount ist immer 1

Wird eine Adresse außerhalb des Netzwerks angepingt, erhalten beide Variablen den Wert 0;

Da der hopCount in Millisek zurückgeliefert werden sollte, nehme ich an, dass die Funktion nicht korrekt ausgeführt wurde.

Mein Code:

ULONG ULhopCount = 2, RTT = 2, MaxHops = 30, ip = 0;

ip = inet_addr("123.123.123.123");

BOOL geklappt = GetRTTAndHopCount(ip, &ULhopCount, MaxHops , &RTT);

Bin über Antworten sehr dankbar, ich verzweifel nämlich schon ;-)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.