Re: help with converting from standalone server

Brian Reichert <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Thu, Jan 29, 2004 at 05:33:05AM +0000, Payal Rathod wrote:
> H,
> I have a small server written in C (not by me) which binds itself to
> port 9999 and accepts 2 input names from a php form. It then writes the input to
> a file /var/designs/new, tab delimited. Nothing much. Simple, right?
> Now this serer has not much network capability, like restricting ips,
> timeouts, concurrency etc. I feel that I can get this by using tcpsvd.
> Can someone tell me what logic I have to use to make it *not* listen to
> port all by itself but have tcpsvd do that job. And what are the
> prractical difficulties it will face when changing from stand-alone to
> tcpsvd mode?
> Please suggest something for me. I am already feeling cool doing such a
> thing in real life :)

PHP code is classically interacted with via HTTP; to wit, your
small server is acting as a miniature web server, accepting CGI input.

Without seeing the code in question, telling you what to rip out
won't be straightforward.

It _might_ be easier to roll your own server from scratch as a ucspi
server, given your simple description...

Good luck...

> Thanks a lot for the help in advance and bye.
> With warm regards,
> -Payal

-- 
Brian Reichert				<[email protected]>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			BSD admin/developer at large
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.