MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / __init__

Method __init__

python/agent.py:14–17  ·  view source on GitHub ↗
(self, port: int, location: Point)

Source from the content-addressed store, hash-verified

12
13 # TODO post_init() method to clean up child classes
14 def __init__(self, port: int, location: Point):
15 self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
16 self.socket.connect((HOST, port))
17 self.location: Point = location
18
19 def send(self, msg: str) -> str:
20 self.socket.sendall(str.encode(msg + ";"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected