lib/net/server.rb
def process_call(connection, local_port, remote_port, remote_ip, remote_hostname, remote_service)
      begin
        Signal.trap("INT") { } # ignore ^C in the child process
        LOG.info("%06d"%Process::pid) {"Connection accepted on port #{local_port} from port #{remote_port} at #{remote_ip} (#{remote_hostname})"} if LOG

        # a new object is created here to provide separation between server and receiver
        # this call receives the email and does basic validation
        Receiver::new(connection, @options).receive(local_port, Socket::gethostname, remote_port, remote_hostname, remote_ip)
      rescue ServerQuit
        # nothing to do here
      end
    end
#
# This is the code executed after the process has been
# forked and root privileges have been dropped.
#
This is the code executed after the process has been
forked and root privileges have been dropped.
This is the code executed after the process has been forked and root privileges have been dropped .
def process_call(connection, local_port, remote_port, remote_ip, remote_hostname, remote_service)
      begin
        Signal.trap("INT") { } 
        LOG.info("%06d"%Process::pid) {"Connection accepted on port #{local_port} from port #{remote_port} at #{remote_ip} (#{remote_hostname})"} if LOG
        Receiver::new(connection, @options).receive(local_port, Socket::gethostname, remote_port, remote_hostname, remote_ip)
      rescue ServerQuit
      end
    end
def process_call ( connection , local_port , remote_port , remote_ip , remote_hostname , remote_service ) begin Signal . trap ( "INT" ) { } LOG . info ( "%06d" % Process :: pid ) { "Connection accepted on port #{local_port} from port #{remote_port} at #{remote_ip} (#{remote_hostname})" } if LOG Receiver :: new ( connection , @options ) . receive ( local_port , Socket :: gethostname , remote_port , remote_hostname , remote_ip ) rescue ServerQuit end end
This is the code executed after the process has been
forked and root privileges have been dropped.
This is the code executed after the process has been forked and root privileges have been dropped .
# ignore ^C in the child process # a new object is created here to provide separation between server and receiver # this call receives the email and does basic validation # nothing to do here
connection
local_port
remote_port
remote_ip
remote_hostname
remote_service