?
Solved

/etc/inetd.conf stream TCP

Posted on 2006-05-09
2
Medium Priority
?
576 Views
Last Modified: 2012-08-14
in inetd.conf , they are stream/dgram parameter,

usually stream is refering to TCP ?
but then is it possible to have stream with UDP as a parameter of service?
If not, why they need to mention whether stream/dgram why not directly called it TCP or UDP?
0
Comment
Question by:kecoak
2 Comments
 
LVL 3

Accepted Solution

by:
steveiam earned 2000 total points
ID: 16654516
Have a look at the man page for inetd.conf here (search for "socket-type"):

  http://www.freebsd.org/cgi/man.cgi?query=inetd.conf&apropos=0&sektion=0&manpath=FreeBSD+6.0-RELEASE+and+Ports&format=html

There are a lot more choices for protocol than TCP/UDP and socket-type than dgram/stream.  Although dgram seems to always go with UDP and stream always with TCP, they could also be 'raw'.  Other protocols aren't always tied to one socket-type, either.

Also, a lack of ambiguity is good, and also allows for future expansion.  Even if a protocol only had one way of processing it today, it doesn't mean it won't in the future.  Also, if other protocols have to have a choice in how they are processed specified, even single-choice protocols have to be specified too.

As I understand it, because UDP is connectionless (i.e. no negotiation is done with the other end to make a connection, the data packets are just sent), there is no concept of a 'stream'.. so UDP will always be a dgram (datagram), or raw.
0
 

Author Comment

by:kecoak
ID: 16682599
1) What happened if I used TCP and Dgram combination? Will the daemon runs?
2)  service name
         socket type
         protocol
Suppose that if the socket type is raw/sequence packet ..... what should be the protocol? As far as I am concerned the value for protocol is limited to TCP/UDP/RPC/Unix?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question