Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to make a UDP server to sent and recieve data?
QtWS25 Last Chance

How to make a UDP server to sent and recieve data?

Scheduled Pinned Locked Moved Solved General and Desktop
udpsocketsservernetwork
4 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ChristianMontero
    wrote on 2 Oct 2017, 03:41 last edited by
    #1

    Good nigth I've been reading the documentation and some post at the forum related to UDP networks, and I already compile the examples of the page, but I can't make a UDP server that sends/recieves data form/to an specific IP address at an specific port, does anybody could help with this? or tell where to look?

    Thank you, any help will be appreciated.

    A 1 Reply Last reply 2 Oct 2017, 05:19
    0
    • C ChristianMontero
      2 Oct 2017, 03:41

      Good nigth I've been reading the documentation and some post at the forum related to UDP networks, and I already compile the examples of the page, but I can't make a UDP server that sends/recieves data form/to an specific IP address at an specific port, does anybody could help with this? or tell where to look?

      Thank you, any help will be appreciated.

      A Offline
      A Offline
      ambershark
      wrote on 2 Oct 2017, 05:19 last edited by
      #2

      @ChristianMontero This page would be a good place to start:
      http://doc.qt.io/qt-5/qtnetwork-programming.html

      What kind of issues are you having with the UDP server? Maybe I can help figure out why it's not working for you.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      C 1 Reply Last reply 2 Oct 2017, 21:13
      2
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 2 Oct 2017, 05:29 last edited by
        #3

        Use QUdpSocket to send and receive datagrams between your server and peers.

        (Z(:^

        1 Reply Last reply
        1
        • A ambershark
          2 Oct 2017, 05:19

          @ChristianMontero This page would be a good place to start:
          http://doc.qt.io/qt-5/qtnetwork-programming.html

          What kind of issues are you having with the UDP server? Maybe I can help figure out why it's not working for you.

          C Offline
          C Offline
          ChristianMontero
          wrote on 2 Oct 2017, 21:13 last edited by
          #4

          @ambershark Thank you very much for your help, now it's working, it seems like I was passing the IP argument incorrectly, now I know that I have to send this parameter inside a QT function. thanks!

          1 Reply Last reply
          1

          4/4

          2 Oct 2017, 21:13

          • Login

          • Login or register to search.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved