Note that there are some explanatory texts on larger screens.

plurals
  1. PODlls and updating them (c#) (client/server)
    primarykey
    data
    text
    <p>I am a software engineer, I work in c# development.</p> <p>The software I am working on has a server and client layout. The server is more of a Database Layer, only it has direct 'access' to the Database. The client simply sends requests and receives the data in form of strings according to the requests, and not data sets or data tables. The database layer interacts with the database thru a dll file. </p> <p>example:</p> <p>Client requests that operation 144 is to be executed. Server receives the operation number, sends it to the dll main routine:</p> <pre><code>Client: string command = "144"; buffer = asci.GetBytes(command); socket.send(buffer); Server: socket.receive(buffer); str = asci.GetString(buffer); op = Int32.Parse(str); Dll.MainRoutine(op); Dll main routine: switch (op) { case 0: blah blah blah ; break; case .......................... case 144: i++ ; break ; default : ; } </code></pre> <p>Lets say the software is running on the actual server. I now want to introduce changes to the client and dll file only (add functionality). Yet I do not want to compile the server again. If I add a new command on the client side called 200, and I add a case to the dll main routine: case 200, will it work? Or do I need to recompile the sever as well?</p> <pre><code>Client: string command = "200"; buffer = asci.GetBytes(command); socket.send(buffer); Server: socket.receive(buffer); str = asci.GetString(buffer); op = Int32.Parse(str); Dll.MainRoutine(op); Dll main routine: switch (op) { case 0: blah blah blah ; break; case .......................... case 144: i++ ; break ; case 200: i+=10 ; break ; default : ; } </code></pre> <p>What I am trying to say is I want to be able to add functionality thru updates to the dll and client only. The server must always be running. Can this be done with dlls or is there another way? </p> <p>Thank you...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload