Results 1 to 2 of 2

Thread: Implementing standard library sockets [SOLVED]

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Qt products
    Platforms
    MacOS X Unix/X11

    Thumbs up Implementing standard library sockets [SOLVED]

    Hello everyone, and sorry in advance if the answer to this is obvious.
    It might be worth mentioning that I'm using PyQt4, although answers can be given as if I were using C++, since translating that to a Python solution should be trivial.
    I have a chat server that was not written with Qt in mind, so of course it uses standard library sockets. I would like to create a simple client without having the complexities of threads. In other words, I would like something that essentially works just like QTcpSocket, using the readyRead() signal.
    Any ideas??

    edit:
    Wasn't aware that QTcpSocket was compatible with standard UNIX sockets. Everything works as expected.
    Last edited by callinyouin; 19th March 2011 at 21:22.

  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: Implementing standard library sockets [SOLVED]

    Sockets are sockets. This is something your system handles and not Qt.
    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.


Similar Threads

  1. Using the standard library with qt creator
    By DragonLance156156 in forum Qt Tools
    Replies: 12
    Last Post: 3rd February 2016, 08:59
  2. Replies: 0
    Last Post: 12th April 2010, 07:05
  3. UNIX Sockets vs. Qt Sockets Help
    By jmqt in forum Newbie
    Replies: 3
    Last Post: 6th July 2009, 15:26
  4. source building a standard gnu library
    By felix in forum Qt Tools
    Replies: 0
    Last Post: 5th March 2009, 17:40
  5. Replies: 2
    Last Post: 2nd June 2008, 08:45

Tags for this Thread

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.