Sunday, July 6th 2008, 4:58pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Beo

Beginner

Posts: 44

Location: Austria

1

Monday, March 1st 2004, 2:01pm

Socket Example

Hi qt community,

I have made a smale client / sever example using my socket class that can send messages of type QVariant. I have found this very usefull since I don't have to care about my data, I just send it like it is.
The class also adds a little header to each packet that is holding the full message size. So it is no problem to send a 1MB file and then just receive a single emit with the complete message.

At the moment there is no documentation included, but the class is very small and should be readable as it is very easy.

I plan to create a view more examples for different problems that are not very well done by the original qt examples or just missing in the near future.

If someone has an idea what would be nice to have, please post it and I will see what I can do. I am working with qt since version 1.4 so I have allready solved many problems that can happen ^^.

Edited 22.03.2004:
I have updated the socket example the "client.pro" was missing in the zip file, sorry for that.
Beo has attached the following file:
  • socket.zip (7.8 kB - 960 times downloaded - Last download: Yesterday, 6:27pm)
[QT] Beo

This post has been edited 1 times, last edit by "Beo" (Mar 22nd 2004, 12:21pm)

  • Go to the top of the page

tuxipuxi

Unregistered

2

Monday, March 1st 2004, 3:27pm

Hi Beo,

had a short look at it, nice example :)

ciao,
michael.
  • Go to the top of the page

dec0ding

Trainee

Posts: 104

Location: Macedonia

Occupation: student

3

Friday, March 5th 2004, 12:44pm

Great, I was about to ask if anyone has some simillar example...

thanks

Aleksandar
Doo bee doo C C C, br br br C + + ..
  • Go to the top of the page

Beo

Beginner

Posts: 44

Location: Austria

4

Monday, March 22nd 2004, 12:21pm

Example updated.
[QT] Beo
  • Go to the top of the page

qtoooo

Unregistered

5

Tuesday, May 18th 2004, 9:55am

How about a nice smal UDP CLient server example.
  • Go to the top of the page

pavanur1

Beginner

Posts: 3

Location: pune

6

Thursday, April 26th 2007, 5:42pm

RE: Socket Example

Hi Beo ..


Its very nice Example .

Can u send latest version of this code which will built on versions above 4.x


Thanx Beo.


Your are a real Hero
  • Go to the top of the page

herdemo

Beginner

Posts: 4

Location: Turkiye

Occupation: Engineer

7

Monday, May 14th 2007, 1:47pm

thanks

Thanks,
it's good example...
______________________
herdemo
  • Go to the top of the page

8

Wednesday, June 6th 2007, 3:39pm

thanks,
  • Go to the top of the page

Posts: 1

Location: The Netherlands

9

Wednesday, April 23rd 2008, 5:05pm

RE: Socket Example

I've read the code, and since I'm rather new at Qt/C++, I'd like to ask a question about it. Am I correct in thinking that the server allows for only one client connection?

Filip
  • Go to the top of the page

Rate this thread