View Single Post
  #1 (permalink)  
Old 07-31-2003
amrufon's Avatar
amrufon amrufon is offline
Registered User
 
Name: Alex
Organization: IST
Project: jDatabase
 
Join Date: May 2003
Location: Manila, Philippines
Posts: 96
Send a message via Yahoo to amrufon
-->
Question ICE calling a Single Threaded DLL

Hello.

Im trying to build an application with ICE that would only use a single instance of an Application. What I mean is that it should be able to accept connection from multiple clients but all the processes are going to be managed by one application. Hmmm. Lets put it this way.

1. Server starts, setup ICE initializations stuff, then creates a new instance of a VB DLL.
2. Client 1 connects and sends a string expecting a return parameter.
3. Server recieves the string and sends it to the VB DLL instance.
4. VB DLL returns a value and returns it to ICE server.
5. Ice Server returns the value to Client 1.
6. Client 2 connects and sends a string to the Ice Server.
7. Ice server recieves the string AND DOES NOT create a new instance of the VB DLL ... it will keep on using the current one.
8. VB DLL recieves the string ... but works on it for some time.
9. Client 1 sends another string to the Ice server.
10. ICe Server recieves Client 1's string but waits till the VB DLL is finished with Client 2's command.
11. VB DLL is finishes with the Client 2's command and returns a value.
12. Ice Send the string back to client 2.
13. Ice now sends the string to VB DLL.
14. Client 2 recieves the value and is Happy.
15. VB Dll Receives the string ,work on it and return result.
16. Ice Server returns result to Client 1.
17. Client one recieves result and is Happy.

I have made a slice definition for this and I'm already working on the client and server codes for the VB DLL interaction.

Quote:
interface jSockets
{
string jclCommand(string command);
};
I fear that, since I don't understand ICE full yet (I just read the docs), I might be missing some crucial stuff. So anybody has suggestions or reminders related with this endeavor?

Thanks.

Alex
Attached Thumbnails
ice-calling-single-threaded-dll-icelayout.jpg  
Reply With Quote