Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.programmer > #635
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.unix.programmer |
| Subject | Re: Linux to windows IPC |
| Date | 2011-05-21 20:34 +1200 |
| Message-ID | <93pbovF1bbU16@mid.individual.net> (permalink) |
| References | <4dd61697$0$9003$c3e8da3$9b4ff22a@news.astraweb.com> <evuia8-5h1.ln1@wilbur.25thandClement.com> <4dd77701$0$10756$c3e8da3$f017e9df@news.astraweb.com> |
On 05/21/11 08:25 PM, Matt Charles wrote: > Thanks for the input so far, but I'll try and explain more clearly. :-) > > I have an existing Red Hat Linux C function (complex business logic > that contains some database access), it takes some strings as input > parameters and returns a string result. This function is currently in > a batch program and works fine. > > However I now also want to call this function somehow from a new Windows > ..NET GUI application. The user will press a button, get an hour glass > and wait for the response to come back (this is what I mean by > synchronous). However there may be multiple users on different PC > pressing the button at the same time, so the solution will have to cope > with that. > > So I'm going to need to repackage my C code in some way to make this happen. > > One possible solution: Package the batch program up as a CGI executable > and call it from Apache. The .NET code will build a URL with > parameters and submit it to the apache webserver. The server runs the > CGI program, which extracts the parameters from the QUERY_STRING > environment variable that Apache creates and then calls the C function > and outputs the result as HTML to stdout. The .NET client can then > interpret this to get the result. I'm sure this will work but the > approach seems a little "dated". So is the wheel, but we still use them. Most "web service" layers (including windows beloved SOAP) are just fancy wrappers around what you describe. Sure you could be more "modern" and use SOAP, but why bother? -- Ian Collins
Back to comp.unix.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Linux to windows IPC Matt Charles <mcharles48@gmail.com> - 2011-05-20 08:21 +0100
Re: Linux to windows IPC Mark <i@dontgetlotsofspamanymore.invalid> - 2011-05-20 10:38 +0100
Re: Linux to windows IPC Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-05-20 15:00 +0100
Re: Linux to windows IPC William Ahern <william@wilbur.25thandClement.com> - 2011-05-20 13:19 -0700
Re: Linux to windows IPC Matt Charles <mcharles48@gmail.com> - 2011-05-21 09:25 +0100
Re: Linux to windows IPC Ian Collins <ian-news@hotmail.com> - 2011-05-21 20:34 +1200
Re: Linux to windows IPC Rainer Weikusat <rweikusat@mssgmbh.com> - 2011-05-22 21:26 +0100
Re: Linux to windows IPC Matt Charles <mcharles48@gmail.com> - 2011-05-23 12:19 +0100
Re: Linux to windows IPC john.spooner@gmail.com - 2012-10-25 06:31 -0700
csiph-web