Networking Forums

Networking Forums > Computer Networking > Linux Networking > super super daemon inetd question ..

Reply
Thread Tools Display Modes

super super daemon inetd question ..

 
 
kid
Guest
Posts: n/a

 
      06-08-2007, 11:33 AM
Hi

I would like to write a server app suports many protocols (TCP UDP
Telnet ..) and add it to inetd.conf launched by super daemon .

How should I write the inetd.conf , is ok to write like below ?


telnet stream tcp nowait root /sbin/app


How about raw TCP and UDP , should they add into configuration file use any
description ?


Thank you .



 
Reply With Quote
 
 
 
 
anon
Guest
Posts: n/a

 
      06-08-2007, 12:43 PM
kid wrote:
> Hi
>
> I would like to write a server app suports many protocols (TCP UDP
> Telnet ..) and add it to inetd.conf launched by super daemon .
>
> How should I write the inetd.conf , is ok to write like below ?
>
>
> telnet stream tcp nowait root /sbin/app
>


Shouldn't it be:
app stream tcp nowait root /sbin/app
?


>
> How about raw TCP and UDP , should they add into configuration file use any
> description ?
>


No, just use functions to read/write raw data from/to standard io
 
Reply With Quote
 
kid1972tw@yahoo.com.tw
Guest
Posts: n/a

 
      06-08-2007, 03:46 PM
Hi if my app wants to handle both TCP and UDP ports , should I write 2
lines ?

app stream tcp nowait root /sbin/app
app dgram udp nowait root /sbin/app

Is it possible ?


anon

> kid wrote:
> > Hi
> >
> > I would like to write a server app suports many protocols (TCP UDP
> > Telnet ..) and add it to inetd.conf launched by super daemon .
> >
> > How should I write the inetd.conf , is ok to write like below ?
> >
> >
> > telnet stream tcp nowait root /sbin/app
> >

>
> Shouldn't it be:
> app stream tcp nowait root /sbin/app
> ?
>
>
> >
> > How about raw TCP and UDP , should they add into configuration file use any
> > description ?
> >

>
> No, just use functions to read/write raw data from/to standard io


 
Reply With Quote
 
Jim Jackson
Guest
Posts: n/a

 
      06-11-2007, 02:08 PM
In comp.os.linux.embedded kid <(E-Mail Removed)> wrote:
> Hi


> I would like to write a server app suports many protocols (TCP UDP
> Telnet ..) and add it to inetd.conf launched by super daemon .


> How should I write the inetd.conf , is ok to write like below ?



> telnet stream tcp nowait root /sbin/app


There is a missing parameter at the end of the line. This is documented in
the man page for inetd.conf

http://www.linuxvalley.it/encycloped...etd.conf.5.php

The last last parameters are command line arguments for the program,
_including_ the name of the program as the first parameter e.g.

app stream tcp nowait root /sbin/app /sbin/app -v

You shoudl also check out the tcpd wrapper that can be used to configure
access to the app by allowing/disallowing access by IP address etc.

The other thing to note is that you get a separate invocation of /sbin/app
for each incoming TCP connection - which may or may not be what you want.

The main reasons for having services started by inetd (or xinetd) are...

- they are not running by default, leaving resources for other programs

- you can use tcpd for extra security

- easy of writing, you don't need to know much about handling
networking connections. You write your application to just
read from standard input and write to standard output and inetd
does the rest. You can even write your application in a scripting
language like bash, or perl.

> How about raw TCP and UDP , should they add into configuration file use any
> description ?


You can not do raw TCP/UDP this way. Why do you need to do _RAW_ udp/tcp?


> Thank you .




 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Belkin N1 with Super G newera Wireless Internet 1 06-14-2007 02:50 PM
Nortel's WiMax on steroids delivers super-fast wireless, super cheaply Knowing About Wireless Internet 0 10-13-2006 07:27 AM
inetd - more than one socket for daemon? bchm@op.pl Linux Networking 0 05-22-2006 07:50 PM
Super G vs Pre-N Pat Wireless Internet 1 03-23-2005 10:08 PM
Specs for a super-cheap, super-small httpd server jesse Linux Networking 5 03-02-2005 12:20 PM



1 2 3 4 5 6 7 8 9 10 11