dibmz
asked on
creating a server programm via inetd
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.