def new_iocb(self, clientAddr, iocbid, controllerName, args, kwargs):
    'Called when the server receives a new request.'
    if _debug:
        IOServer._debug('new_iocb %r %r %r %r %r', clientAddr, iocbid, controllerName, args, kwargs)
    controller = _local_controllers.get(controllerName, None)
    if (not controller):
        err = RuntimeError(("no local controller '%s'" % (controllerName,)))
        response = (2, iocbid, err)
        if _debug:
            _commlog.debug(('<<< %s: S %s %r' % (_strftime(), clientAddr, response)))
        response = cPickle.dumps(response, 1)
        self.request(PDU(response, destination=clientAddr))
    else:
        iocb = IOCB(*args, **kwargs)
        if _debug:
            IOServer._debug('    - local IOCB %r bound to remote %r', iocb.ioID, iocbid)
        self.remoteIOCB[iocb] = (iocbid, clientAddr)
        iocb.add_callback(self.callback)
        controller.request_io(iocb)
Called when the server receives a new request.
def new_iocb(self, clientAddr, iocbid, controllerName, args, kwargs):
    
    if _debug:
        IOServer._debug('new_iocb %r %r %r %r %r', clientAddr, iocbid, controllerName, args, kwargs)
    controller = _local_controllers.get(controllerName, None)
    if (not controller):
        err = RuntimeError(("no local controller '%s'" % (controllerName,)))
        response = (2, iocbid, err)
        if _debug:
            _commlog.debug(('<<< %s: S %s %r' % (_strftime(), clientAddr, response)))
        response = cPickle.dumps(response, 1)
        self.request(PDU(response, destination=clientAddr))
    else:
        iocb = IOCB(*args, **kwargs)
        if _debug:
            IOServer._debug('    - local IOCB %r bound to remote %r', iocb.ioID, iocbid)
        self.remoteIOCB[iocb] = (iocbid, clientAddr)
        iocb.add_callback(self.callback)
        controller.request_io(iocb)