Results 1 to 4 of 4

Thread: Network Communication

  1. #1
    Join Date
    Aug 2010
    Posts
    8
    Thanks
    1

    Default Network Communication

    I need to create a server client program which will contain following steps:

    Server Side:

    1) Create a thread.
    2) Create a socket.
    3) Bind this.
    4) Listen it.
    5) Accept.
    6) Receive client data.
    7) Send confirmation msg to client.

    Client Side:

    1) Create a thread.
    2) Create a socket.
    3) send any data to server side.
    4) Receive confirmation msg from server.

    It is going to be TCP-IP communication so I am thinking of using QTcpSocket class. Anybody who has any idea about this pls help. If you can provide me working code then that would be best thing...... Thanks in advance......

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Network Communication

    This has many working examples

  3. #3
    Join Date
    Aug 2010
    Posts
    8
    Thanks
    1

    Default Re: Network Communication

    Just now I got the example of Fortune Server-Client program...... That is working code but that one is a little bit complicated.... I want a very simple program with these functionalities and without any push buttons or dialog......

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Network Communication

    Check this

Similar Threads

  1. D-Bus communication over the network
    By lotek in forum Qt Programming
    Replies: 3
    Last Post: 8th March 2011, 13:28
  2. Communication with USB
    By prasenjit in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2010, 00:19
  3. Qt and .Net communication
    By soniaerm in forum Qt Programming
    Replies: 0
    Last Post: 22nd April 2010, 06:37
  4. Network Communication Architecture
    By mhoover in forum Qt Programming
    Replies: 2
    Last Post: 30th May 2009, 03:49
  5. USB communication
    By M. Bashir in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2008, 02:56

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.