I am in the process of writing a Linux server program (written in Perl) which makes a socket connection with a Windows NT client program (written in Visual Basic). Once the client connects to the server, the client passes information read from a file through the socket connection to the server.
When I originally wrote the code for the server, I specifically created the server socket, accepted the client connection, and used "recv" to get data from the client (using the IO::Socket and Net::hostent modules) -- that worked fine. Now, I need to use inetd on the server side to complete the steps I had previously specifically coded, and I am not receiving data through the socket connection.
hosts.allow and hosts.deny are fine, and I added the following line to inetd.conf:
mrpt stream tcp nowait root /usr/sbin/tcpd /solid/socket.pl
and the following line was added to /etc/services:
mrpt port #/tcp (where 'port #' is the actual numeric
port number)
When I checked 'netstat', I saw mrpt listed in the LISTEN state, but I cannot get my client-side program to connect to the mrpt service. How would I invoke the mrpt service so that it will accept a client-side connection?
Thank you,
Carrie
When I originally wrote the code for the server, I specifically created the server socket, accepted the client connection, and used "recv" to get data from the client (using the IO::Socket and Net::hostent modules) -- that worked fine. Now, I need to use inetd on the server side to complete the steps I had previously specifically coded, and I am not receiving data through the socket connection.
hosts.allow and hosts.deny are fine, and I added the following line to inetd.conf:
mrpt stream tcp nowait root /usr/sbin/tcpd /solid/socket.pl
and the following line was added to /etc/services:
mrpt port #/tcp (where 'port #' is the actual numeric
port number)
When I checked 'netstat', I saw mrpt listed in the LISTEN state, but I cannot get my client-side program to connect to the mrpt service. How would I invoke the mrpt service so that it will accept a client-side connection?
Thank you,
Carrie