Results 1 to 20 of 58

Thread: Socket Prog

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Dec 2012
    Posts
    197
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    25
    Thanked 41 Times in 33 Posts

    Default Re: Socket Prog

    Connect the newConnection signal to a newConnection Slot and accept the connection or use your code :
    Quote Originally Posted by Vivek1982
    Qt Code:
    1. QTcpSocket *socket = new QTcpSocket;
    2. socket=server->nextPendingConnection();
    3. if((socket->state()==QTcpSocket::ConnectedState))
    To copy to clipboard, switch view to plain text mode 
    Good Luck.
    Last edited by toufic.dbouk; 13th November 2013 at 14:32. Reason: Code Tag

Similar Threads

  1. client/server prog using UDP
    By rajeshakula in forum Newbie
    Replies: 1
    Last Post: 12th July 2011, 11:43
  2. Build issues when qextsrialport.h is included in Linux prog
    By pupqt in forum Installation and Deployment
    Replies: 1
    Last Post: 7th April 2011, 15:48
  3. Replies: 2
    Last Post: 11th March 2010, 09:46
  4. can the image be displayed as it is in chips prog..
    By sh123 in forum Qt Programming
    Replies: 11
    Last Post: 7th February 2009, 08:15
  5. Qt Prog skip the file reading block
    By dgg32 in forum Qt Programming
    Replies: 10
    Last Post: 10th December 2008, 18:12

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
  •  
Qt is a trademark of The Qt Company.