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. QUDPSocket in bound state

QUDPSocket in bound state

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 592 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.
  • S Offline
    S Offline
    supratik123
    wrote on last edited by
    #1

    I am trying to develop a client socket server using QUDP socket. I am new to this so I was just trying to try out all the scenarios. I am trying to connect to a server which I have binded at port 8000. The thing here is my writedatagram method in the client is returning the number of bytes written even when the server program is not running. Is it some kind of bug or this is the behaviour of UDP socket.
    Secondly whenever I am trying to check the state of the client socket when it is writing to the sevrer, it is showing as Bound state. Is it something different from Connected state.
    Any help will be very much appreciated

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @supratik123 said in QUDPSocket in bound state:

      client is returning the number of bytes written even when the server program is not running.
      Is it something different from Connected state.

      Since UDP communication is stateless I don't see what should be wrong with this.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2

      • Login

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