简体   繁体   中英

Call Windows Service from Browser

I want to send data to a driver software via browser application with in same machine. If this driver can keep on listening to external connection via socket as a windows service, can I write a web application to send data to this driver by using php, applet or .net. Driver is written in C#. Is this possible and if so can someone show me a path/suggestions or any resource related to this?

I do not know a whole lot about drivers...

But, if you can self-host a WCF service in the C# driver, than you can do IPC (inter-process communication) on the same machine. The WCF could expose multiple endpoints ie.) http, namedpipe, or tcp and the .NET web application can subscribe to the service and send data to the C# driver.

Also, if you use a http or tcp endpoint, i believe that the web application would be able to connect to the C# driver from another machine.

WCF Reference: http://msdn.microsoft.com/en-us/library/ms731082.aspx

you could use web sockets WebSocket , however your driver would have to handle the handshake.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM