The Linux Page

Breaking TCP/IP with a simple client/server implementation in Qt

I've been working on a TCP/IP server/client with Qt and got a problem which I present in the attached package.

The example called tcp-bug. Start it with:

tcp-bug -s

in one console and then start the same command without the -s in another console:

tcp-bug

The client (this second tcp-bug without the -s) saves the file sent by the server in /tmp/out.html and it has to be exactly the same as the example.html file in the project. If not, then the transfer failed.

Most often, the transfer works so I wrote a script called many-hits.sh to run the client many times and test the result. When a transfer fails, the script stops.

AttachmentSize
tcp-bug-0.1.1-Source.tar_.gz5.86 KB