Results 1 to 2 of 2

Thread: How to disconnenct socket in server side?

  1. #1
    Join Date
    Jun 2012
    Location
    Iran , Tehran
    Posts
    93
    Thanks
    5
    Platforms
    Unix/X11 Windows Android

    Post How to disconnenct socket in server side?

    Hi guys!
    i'm developed a chat program by TCP protocol.
    i used one QTcpSocket and one QTcpServer for server section and used one QTcpSocket for client.
    now my problem is how to disconnect the connection that established between server and client by server side ??

    Regards.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: How to disconnenct socket in server side?

    Just close the socket and call disconnectFromHost().
    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. The following user says thank you to wysota for this useful post:

    Ali Reza (7th June 2012)

Similar Threads

  1. Replies: 2
    Last Post: 13th January 2011, 05:30
  2. Retrieve Host Name at Server Side
    By hkaraoguz84 in forum Qt Programming
    Replies: 0
    Last Post: 24th August 2010, 15:02
  3. server-side app CGI Programming.
    By jcr in forum Newbie
    Replies: 0
    Last Post: 15th January 2009, 10:37
  4. non GUI socket server
    By pdoria in forum Qt Programming
    Replies: 1
    Last Post: 3rd January 2008, 11:15
  5. Programming client-server with socket in multi-languages
    By philiptine in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2007, 07:35

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.