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. QAbtractSocket bind flags

QAbtractSocket bind flags

Scheduled Pinned Locked Moved General and Desktop
qudpsocketbindshareaddressudp
1 Posts 1 Posters 1.0k 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.
  • K Offline
    K Offline
    koahnig
    wrote on 3 May 2015, 15:05 last edited by koahnig 5 Sept 2015, 19:00
    #1

    QAbstractSocket::bind allows different bind flags..
    QAbstractSocket::ShareAddress is defined as:
    Allow other services to bind to the same address and port. This is useful when multiple processes share the load of a single service by listening to the same address and port (e.g., a web server with several pre-forked listeners can greatly improve response time).

    I am wondering what is capable to do. Binding to the same IP address and the same port with QTcpSocket may not make sense at all. At least one will require multiple sockets on the other side as well, because of the different TCP handling of data packets.

    For QUdpSockets this is different. UDP sends a data packet and does not care, if it is received. However, when trying to bind twice to the same port no information is coming through. Does anyone know if there is a restriction?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0

    1/1

    3 May 2015, 15:05

    • Login

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