PDA

View Full Version : QTcpServer->listen() doesnot need the hostaddress in its argument



babu198649
24th November 2008, 07:21
hi
A server will always listens on the local machine .Then why does the function
bool QTcpServer::listen ( const QHostAddress & address = QHostAddress::Any, quint16 port = 0 )

takes address as the argument.Can a Server listen on the other computers port.

Thank you

high_flyer
24th November 2008, 10:56
no, but one machine can have more then only one IP/Network interface.