/etc/inetd.conf stream TCP

Posted on 2006-05-09
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?
Question by:kecoak
    LVL 3

    Accepted Solution

    Have a look at the man page for inetd.conf here (search for "socket-type"):

    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.

    Author Comment

    1) What happened if I used TCP and Dgram combination? Will the daemon runs?
    2)  service name
             socket type
    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?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now