Results 1 to 4 of 4

Thread: UNIX Sockets vs. Qt Sockets Help

  1. #1
    Join Date
    Jun 2009
    Posts
    10
    Platforms
    MacOS X

    Default UNIX Sockets vs. Qt Sockets Help

    I have written a unix socket program and want to incorporate it within my GUI program however, the connect throws an error, since connect in Qt mean something totally different. Is there away around this, since I dont want to mess around with Qt sockets.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: UNIX Sockets vs. Qt Sockets Help

    Qt uses UNIX sockets as well so you can just use QLocalSocket/QLocalServer and will obtain exactly the same result. As for connect, use "::connect()" for the system call and "connect()" for QObject method call.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default

    have you tried the scope resolution operator? something like ::connect ?

    sorry .. did not saw the previous reply
    Last edited by wysota; 6th July 2009 at 17:17.

  4. #4
    Join Date
    Jun 2009
    Posts
    10
    Platforms
    MacOS X

    Default Re: UNIX Sockets vs. Qt Sockets Help

    Thanks so much!!! I love this site...

Similar Threads

  1. Strange problem with events on Unix
    By sukanyarn in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2006, 02:45
  2. [QT4] UNIX domain sockets ..
    By ucntcme in forum Qt Programming
    Replies: 0
    Last Post: 6th March 2006, 11:38

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.