Search found 27 matches
- Fri Nov 29, 2013 1:22 pm
- Forum: Support - RCF
- Topic: [RCF::OpenSSL] Need help. Traffic is not encrypted.
- Replies: 3
- Views: 6421
[RCF::OpenSSL] Need help. Traffic is not encrypted.
OpenSSL generating PEM-files: openssl genrsa -des3 -passout file:passphrase.txt -out rcf_srv.pem 2048 openssl rsa -in rcf_srv.pem -passin file:passphrase.txt -pubout -out rcf_clnt.pub Server-Side code: RCF::RcfServer server( RCF::TcpEndpoint("0.0.0.0", 50001) ); server.getServerTransport().setMaxInc...
- Sat Nov 23, 2013 7:42 am
- Forum: Support - RCF
- Topic: [RCF::Logging] How logging to StdOut and File ?
- Replies: 1
- Views: 3579
[RCF::Logging] How logging to StdOut and File ?
Logging to StdOut only: #define MYLOGFMT "%C (%D) %X" #define MYLOGNAME 8 #define RCFLOG3() UTIL_LOG(MYLOGNAME, RCF::LogLevel_3) << "[MyLog] " std::string myLogFormat = MYLOGFMT; RCF::enableLogging(RCF::LogToStdout(), 3, myLogFormat); RCF::LoggerPtr myLogPtr(new RCF::Logger(MYLOGNAME, 3, RCF::LogToS...
- Fri Nov 22, 2013 7:05 am
- Forum: Support - RCF
- Topic: [SF] Serialization Qt classes (with examples)
- Replies: 5
- Views: 9649
- Wed Oct 23, 2013 11:17 am
- Forum: Support - RCF
- Topic: How to perform the work on the server in a separate thread?
- Replies: 7
- Views: 9199
Re: How to perform the work on the server in a separate thre
Well, doctoring the source code won't make you very popular with our support team :) I use the "RCF" for home use only. Google is my support team ;) However, we'll need to find a way to accomplish what you want to do. Is it possible for you to simply use a multi-threaded server? http://www.deltavso...
- Mon Oct 21, 2013 12:30 pm
- Forum: Support - RCF
- Topic: How to perform the work on the server in a separate thread?
- Replies: 7
- Views: 9199
Re: How to perform the work on the server in a separate thre
Custom services, as described in your link, are no longer supported in RCF. Method "addService" maked as public. Implementation took from PingBackService. If you start your own threads from within an RCF server object, you'll need to manage those threads separately from the RcfServer. So before you...
- Mon Oct 21, 2013 7:44 am
- Forum: Support - RCF
- Topic: [BUG] RCF::detail::thread.join() - not actual completion!
- Replies: 1
- Views: 3637
[BUG] RCF::detail::thread.join() - not actual completion!
from Asio void win_thread::join() { HANDLE handles[2] = { exit_event_, thread_ }; ::WaitForMultipleObjects(2, handles, FALSE, INFINITE); ::CloseHandle(exit_event_); if (terminate_threads()) { ::TerminateThread(thread_, 0); } else { ::QueueUserAPC(apc_function, thread_, 0); ::WaitForSingleObject(thre...
- Fri Oct 18, 2013 8:16 am
- Forum: Support - RCF
- Topic: How to perform the work on the server in a separate thread?
- Replies: 7
- Views: 9199
Re: How to perform the work on the server in a separate thre
Maybe I need to to use "Creating a service"?
http://www.deltavsoft.com/doc/archive/1 ... cture.html
http://www.deltavsoft.com/doc/archive/1 ... cture.html
- Fri Oct 18, 2013 6:52 am
- Forum: Support - RCF
- Topic: How to perform the work on the server in a separate thread?
- Replies: 7
- Views: 9199
Re: How to perform the work on the server in a separate thre
If you do need to execute a remote call on a thread other than the RCF thread that receives the call, you can use asynchronous dispatching, described here: http://www.deltavsoft.com/doc/rcf_user_guide/AsyncRemoteCalls.html#rcf_user_guide.AsyncRemoteCalls.asynchronous_remote_call_dispatching Imagine...
- Thu Oct 17, 2013 11:58 am
- Forum: Support - RCF
- Topic: How to perform the work on the server in a separate thread?
- Replies: 7
- Views: 9199
How to perform the work on the server in a separate thread?
The client sends a command to run the executable module that is on the server machine. Must be in a separate thread to standard output read data in the database. It seems to be suited for this asynchronous calls. But just disconnect the client cancels the operation. I must use RCF::ThreadPool.setTas...
- Thu Oct 10, 2013 9:48 am
- Forum: Wish List
- Topic: Make an object ServerImpl individually for each RcfSession.
- Replies: 3
- Views: 10227
Re: Make an object ServerImpl individually for each RcfSessi
You can get the RcfSession by calling RCF::getCurrentRcfSession() from within the server implementation. To create a session object of a custom type, let's say MyServerSession, you can use RcfSession::getSessionObject(). Now I am doing just that: #define GET_RCFSES_AND_CLIENT \ RCF::RcfSession & rc...