Results 1 to 4 of 4

Thread: Sample code server chat gui and client chat gui TCP / IP

  1. #1
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Sample code server chat gui and client chat gui TCP / IP

    Hello everyone, I would need an example code server chat gui and client chat gui TCP / IP to be studied using Qt 5.9.1 on Windows 7. What I then want to get at the end is a GUI chat between a PC and a smartphone (using Android Studio 3.0.1) using TCP / IP over wifi.
    Thank you all for your kind attention and help.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Sample code server chat gui and client chat gui TCP / IP

    Why not start with the Qt examples?
    http://doc.qt.io/qt-5/qtnetwork-netw...t-example.html
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sample code server chat gui and client chat gui TCP / IP

    Hi high_flyer, I'm going to see this example you indicated to me. In practice what I would like to do is a TCP / IP server on wifi (static IP addresses) that must be able to receive and send strings. The same thing I have to do on the Android client side for the smartphone.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Sample code server chat gui and client chat gui TCP / IP

    Wifi is not relevant from the perspective of your code - your application requests access to a url, that system will provide it.
    What is the involved hardware is not important.
    Start with the example it will give you the first basics of networking.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 4
    Last Post: 18th January 2016, 20:08
  2. Chat client QPixmap
    By sgu35 in forum Newbie
    Replies: 4
    Last Post: 25th April 2015, 10:58
  3. Examples for chat program, server-client?
    By Gokulnathvc in forum Newbie
    Replies: 1
    Last Post: 8th September 2011, 11:53
  4. Network Chat Client in a multihomed environment.
    By drescherjm in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2010, 18:28
  5. Chat client!!!!
    By galleeg in forum Qt Tools
    Replies: 1
    Last Post: 16th May 2006, 10:05

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.