endurox.tpadvertise¶
- endurox.tpadvertise(*args, **kwargs)¶
Overloaded function.
tpadvertise(svcname: str, funcname: str, func: function) -> None
Routine for advertising a service.
This function applies to ATMI servers only.
For more details see C call tpadvertise(3).
- raise AtmiException:
Parameters
- svcnamestr
Service name to advertise
- funcnamestr
Function name of the service
- funcobject
Callback function used by service. Callback function receives Server object with which tprun() was started and second argument is args variable, which corresponds to
TPSVCINFOclass. The function must be a class function (i.e. not bound function).
tpadvertise(svcname: str) -> None
Routine for advertising a service. Perform advertise by given service name only. Actual callback function is resolved from the server object instance, which is passed to the
tprun(). Enduro/X service function name is set to the name as service name.This function applies to ATMI servers only.
For more details see C call tpadvertise(3).
- raise AtmiException:
Parameters
- svcnamestr
Service name to advertise.