Solved

creating a server programm via inetd

Posted on 1998-10-04
1
224 Views
Last Modified: 2010-05-18
I've written a simple C server with the following functions
to create a socket and listen to a port:
socket -> bind -> accept -> recv

When I start the programm from a shell everything is working.
If I try to enter the port and the service call in the
/etc/services and /etc/inetd.conf the bind call returns
that the port is occupied. (I think i is the inetd)
What network functions do I need to make the inetd start my server ???

Thanks
0
Comment
Question by:dibmz
1 Comment
 
LVL 2

Accepted Solution

by:
mlev earned 50 total points
ID: 1587055
inetd does socket(), bind() and accept() (if applicable) for you.
When your server is started, the socket is on its file descriptor 0, and you can recv() right away.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

15 Experts available now in Live!

Get 1:1 Help Now