QUDPSocket in bound state



  • 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


  • Qt Champions 2018

    @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.


Log in to reply