You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, July 21st 2011, 2:43pm

Execute method on server application.

Hello.
I have been looking on Qt example: fortuneserver. 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:

Qt Code:
Switch view

  1. public QString GetCustomerLastName(const int& customerID);

  2. 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?

2

Friday, July 22nd 2011, 1:47am

Hi,

It's called RPC (remote procedure call) and libqxt does that.

Similar threads

Used tags

client, server