porterneon
21st July 2011, 15:35
Hello.
I have been looking on Qt example: fortuneserver (http://doc.trolltech.com/4.7/network-threadedfortuneserver.html). FortuneServer is responding on incomingConnection event and returning randome QString. How to define my own public methos on server application? For example I would like to allow client application to call server method:
public QString GetCustomerLastName(const int& customerID);
public void SetCustomerLastName(const int& customerID, const QString& lastName);
Howto define those kind public methods on server and how to call them from client application?
I have been looking on Qt example: fortuneserver (http://doc.trolltech.com/4.7/network-threadedfortuneserver.html). FortuneServer is responding on incomingConnection event and returning randome QString. How to define my own public methos on server application? For example I would like to allow client application to call server method:
public QString GetCustomerLastName(const int& customerID);
public void SetCustomerLastName(const int& customerID, const QString& lastName);
Howto define those kind public methods on server and how to call them from client application?