Results 1 to 1 of 1

Thread: QUdpSocket - Multiple Network Interfaces

  1. #1
    Join Date
    Oct 2008
    Posts
    74
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QUdpSocket - Multiple Network Interfaces

    Hi

    I have a server program which broadcasts packets on 10.255.255.255 using a network adaptor with IP 10.0.0.88 (subnet 255.0.0.0). The client program does not see any packets.

    If I change the broadcast IP to 255.255.255.255, then it works OK. It appears my local address is 0.0.0.0. How can I change my local address so that my client looks for packets on a particular network interface?

    I have tried setLocalAddress but I get the error

    `void QAbstractSocket::setLocalAddress(const QHostAddress&)' is protected

    How can I fix this?

    Regards
    Last edited by dbrmik; 24th April 2009 at 13:49. Reason: spelling error

Similar Threads

  1. Object and multiple inheritance for interfaces
    By brcain in forum Qt Programming
    Replies: 8
    Last Post: 29th June 2021, 15:29
  2. Replies: 12
    Last Post: 22nd March 2009, 11:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.