General Usage

Only one method is required to be called in the script extending the INET base class -- process_request. This method is called after the socket connection is established and the script is started by inetd. The script will have handle the client-server communication once the socket is established via calls to syswrite() and sysread(). It's also important to keep track of socket timeouts to prevent a denial of service attack:

                  local $SIG{ALRM} = sub { die "Timed out!\n" };
                  my $timeout = 30;
		  my $previous_alarm = alarm($timeout);
	        
There are several other hook methods that are left undefined in the base class that can be implemented. These will be covered in the example code.

Intro Practical Applications

Lightning Talk by brian janaszek (bmj@anklebiter.net)