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.

Netzwerk: UDP-Pakete senden

Empfohlene Antworten

Hallöchen,

als absoluter Anfänger würde ich mich freuen, wenn mir jemand nen Hinweis geben kann, wie ich mit c++ ein UDP-Paket an Rechneradresse x.x.x.x Port y schicken kann.

Habe ein Programm, welches auf einen Port lauscht, über den man Befehle sowohl senden als auch empfangen kann und dadurch Informationen aus dem Programm abfragen kann bzw. auch das Programm steuern kann.

Es gibt vordefinierte structs, die man wohl irgendwie in die UDP-Pakete verwurschteln muss.

So ein struct besteht in der Regel aus einer Zusammensetzung von Integers und anderen Datentypen.

Also, hat hier jemand vielleicht nen Link, wo beschrieben ist, wie man das mit c++ umsetzen kann? Wäre cool! :)

gruß

schlati

Mit Standard-C++ geht das gar nicht. Benutzt du Windows oder Linux oder etwas ganz anderes?

Verschoben -> C++: Compiler, IDEs, APIs

Ups,

sorry. System ist Windows.

Hier gibt es ein Beispiel, das dir weiterhelfen dürfte.
Jepp, das ist ein guter Anfang. Danke!

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.