okay I will check it. Actually my few queries for you is. Please if possible answer.
1. In a network(Office LAN), can these two client and server program can run on same machine.
2. QHostaddress::Localhost this statement will call for IP address 127.0.0.1. how to use this.
3. In my PC IP address will taken automatically bcoz Im connected in office LAN.Any changes to be made...
4.Finally last query is on server side.. New connection found(), accept connection(), readyread(),write() delete()
clientside.. connecttoserver() writemsg(). these two type is enough..................
Any other general info required to Socket programming please let me know, where I can implement?
Added after 1 45 minutes:
Hi wagmare.. I have tried that example. As usual we have kept a qDebug msg in client program that is not executed. I didnt make any changes in the server directly. I started Server program next client program. GUI came no problem in that.but application window gave this msgs.
Client Application output
Starting C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe...
QMetaObject::connectSlotsByName: No matching signal for on_connected()
QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1"
QAbstractSocket::connectToHost() called when already looking up or connecting/connected to "127.0.0.1"
C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe exited with code 1
Starting C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe...
Cannot retrieve debugging output!
C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe exited with code 0
Starting C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe...
QMetaObject::connectSlotsByName: No matching signal for on_connected()
C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe exited with code 1
Starting C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe...
Cannot retrieve debugging output!
C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe exited with code 0
Starting C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe...
Cannot retrieve debugging output!
C:\Users\398292\Desktop\TCPClient\debug\TCPClient. exe exited with code 0