MCPcopy Create free account
hub / github.com/a943512/PyAibote / __init__

Method __init__

PyAibote/WebBot.py:45–56  ·  view source on GitHub ↗
(self,*args)

Source from the content-addressed store, hash-verified

43 ):
44
45 def __init__(self,*args):
46 if len(args) ==1:
47 address_info = socket.getaddrinfo(None, args[0], socket.AF_INET, socket.SOCK_STREAM)[0]
48 family, socket_type, proto, _, socket_address = address_info
49 server = socket.socket(family, socket_type, proto)
50 server.bind(socket_address)
51 server.listen(1)
52 print("Mix Start WebBot Service")
53 self.request, self.client_address = server.accept()
54 print("WebBot Client link succeeded")
55 else:
56 super().__init__(*args)
57
58 @classmethod
59 def _build(self, listen_ip, listen_port: int, Debug: bool = True, driver_params: dict = {}) -> object:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected