I can't understand this function ,especially socketDescriptor. what I can do.
I can't understand this function ,especially socketDescriptor. what I can do.
Hi,
Create a Socket passing this value to it. Think on that is an identifier.
Òscar Llarch i Galán
this function is spawned when client connects to server, thus 'incoming Connection'... socket descriptor is just indetificator of socket, nothing else (because you can have more-than-one clients connected)...
thank you for you reply. now,I meet a question,I want server to receive message from many clients. using the thread.
this QTcpServer::incomingConnection can help me do this work?
Hi,
You can create on thread every time "incomingConnection" is called.
But the question is, do you really need threads?
Òscar Llarch i Galán
insert (8th September 2010)
have you other methor ?
it maybe troublesome. ok,I will do it in my methor. thank you!
at last ,I I finally got the question!
Bookmarks