'Parse an inetd.conf file.
Implemented from the description in the Debian inetd.conf man page.'

def parseFields(self, serviceName, socketType, protocol, wait, user, program, *programArgs):

    (user, group) = (user.split('.') + [None])[:2]
    port = self.knownServices.services.get((serviceName, protocol), None)
    if ((not port) and (not protocol.startswith('rpc/'))):
        try:
            port = int(serviceName)
            serviceName = 'unknown'
        except:
            raise UnknownService(('Unknown    service:    %s    (%s)' % (serviceName, protocol)))
    self.services.append(InetdService(serviceName, port, socketType, protocol, wait, user, group, program, programArgs))
