Results 1 to 2 of 2

Thread: Simple client server application using tcpsocket and tcpserver doesn't work

  1. #1
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Simple client server application using tcpsocket and tcpserver doesn't work

    hello, i'm new here...
    i have a problem. i want to send data from a client to a server, but i think there is an error in my code... it does'nt work.can u have a look please? i'm sure there's something wrong, but i think 2 or 3 lines of code... please... it's for my university exam, i think it's not difficult at all! the code i attached.
    thanks
    client.zip
    provaServer.zip

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Simple client server application using tcpsocket and tcpserver doesn't work

    Quote Originally Posted by alfrsca View Post
    i want to send data from a client to a server, but i think there is an error in my code...
    This is probably thought correctly .

    it does'nt work.
    It would be nice if you told what exactly doesn't work. What have you tried so far, which examples have you looked at to try and solve this issue? Did you debug your code? What happens that shouldn't happen or what doesn't happen that should happen?

    it's for my university exam, i think it's not difficult at all!
    I'd say that you should be able to solve the issue yourself. There isn't a lot of code to debug.

    And a general note: pick a coding style. Your code is a mess...
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. Replies: 3
    Last Post: 14th August 2010, 05:04
  2. passing structure from tcpserver to client
    By aj2903 in forum Qt Programming
    Replies: 4
    Last Post: 22nd December 2008, 11:11
  3. TCP Client-Server Application
    By Tavit in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2008, 14:20
  4. Client/Server doesn't work
    By mattia in forum Newbie
    Replies: 2
    Last Post: 1st November 2007, 14:31

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.