Click to See Complete Forum and Search --> : RE: Domestic networking


kestral
06-13-2001, 02:12 PM
Hi all guru's,

I am doing this project setting a internet server to listen to "commands" from a remote computer to control LEDs that is connected to the server via parallel port.
I have set up my apache server and using C program to control the LED lights. However I'm not sure of how to interface the remote user's commands to my C program. Wonder if anyone here can advise on what should I do? Am I suppose to use CGI, Java or? Am how am I going to go about it? Thanks!

P/S: I'm not too sure how to put my source code here. If u would like to take a look at my source code, pls mail me at T21@bigfoot.com. I will be most gladly to show it to you for ur comments!

Regards
Newbie

Stuka
06-13-2001, 05:31 PM
What might be easier than using Apache would be to write a daemon program that listens on a specified port for commands (in whatever form you'd like). Then just write a client app that sends the appropriate commands to that port on your server. If you need to use a Web server (to avoid distributing a client app, for example), you could use your existing C program (possibly with small modifications) as a CGI.