de_twin.faces.deapi_server.TwinDeapiServer#
- class de_twin.faces.deapi_server.TwinDeapiServer(twin, port=13240, host='127.0.0.1', *, pace=True)[source]#
Bases:
objectThe deapi protocol on a TCP port (plus the UDP stop listener), for one twin.
Unlike deapi’s
initialize_server.mainit serves several connections at once (one thread each, commands serialised), binds any host and can be stopped, which is what tests andde-twin serveneed.Methods
Attributes
the socket may be closed by now).