c# - How to invoke dll method on a different machine? -


let's have c dll functions like:

void beep(); char* foo(char** whatever); 

now want able put dll on 1 machine (server) , call different machine (client). client can c# dll (and proxy server) needs regular c. ideal on client:

mydllaccess remote = proxylib.getremotedll("192.168.1.10:12100", "mydll.dll");  remote.execute("beep"); // other machine beeps (uses getprocaddress find function) 

i know i'm reinventing com, etc, but..... there way? if not, why not , simplest way want since have dll?

edit: needs work linux shared library, e.g. proxylib.getremote("192.168.10.12100", "mything.so")

if need work across different oses, have hard time doing in pretty generic manner. can search "platform independent apis" in wikipedia article: inter-process communication idea. of find heavyweight.

one simple way write ad-hoc http rest server (possibly json or xml interchange format). has advantage of being simple, , able access using os decent http stack (including mobiles).


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -