Question #238531 on Duetto changed: https://answers.launchpad.net/duetto/+question/238531
Alessandro Pignotti proposed the following answer: The client and server side are actually built using a different set of system headers. If an header is only available on the server side (e.g. non C++ threading support like pthread.h) you can wrap it inside an #ifdef __DUETTO_SERVER__/#endif. You can still mix and match client and server code in the same file since errors in the body of server methods will be ignored while compiling client code, since they will not be actually compiled anyway but only parsed. It also possible to write client and server code in separate cpp files. You can then declare the server methods in a common header file (like you would declare any other externally implemented method). In this way the client code will be able to compile the right stubs for the RPC automatically. -- You received this question notification because you are a member of Leaningtech Team, which is an answer contact for Duetto. -- Mailing list: https://launchpad.net/~leaningtech-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~leaningtech-dev More help : https://help.launchpad.net/ListHelp

