equal
deleted
inserted
replaced
171 global svghmi_listener, svghmi_root, svghmi_send_thread |
171 global svghmi_listener, svghmi_root, svghmi_send_thread |
172 |
172 |
173 svghmi_root = Resource() |
173 svghmi_root = Resource() |
174 svghmi_root.putChild("ws", WebSocketResource(HMIWebSocketServerFactory())) |
174 svghmi_root.putChild("ws", WebSocketResource(HMIWebSocketServerFactory())) |
175 |
175 |
176 svghmi_listener = reactor.listenTCP(8008, Site(svghmi_root)) |
176 svghmi_listener = reactor.listenTCP(8008, Site(svghmi_root), interface='localhost') |
177 |
177 |
178 # start a thread that call the C part of SVGHMI |
178 # start a thread that call the C part of SVGHMI |
179 svghmi_send_thread = Thread(target=SendThreadProc, name="SVGHMI Send") |
179 svghmi_send_thread = Thread(target=SendThreadProc, name="SVGHMI Send") |
180 svghmi_send_thread.start() |
180 svghmi_send_thread.start() |
181 |
181 |