Esempio n. 1
0
 def query(self, arg: core.DStr) -> core.DStr:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("query", [arg])
         )
     )
Esempio n. 2
0
 def is_open(self) -> core.DBool:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("is_open", [])
         )
     )
Esempio n. 3
0
 def op(self, arg: core.DStr) -> None:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("op", [arg])
         )
     )
Esempio n. 4
0
    def put(self, candy: str) -> core.DNone:
        arg = core.DStr(candy)

        return self.operate(
            core.Operation("core", "Box", core.opTuple("put", [arg])))
Esempio n. 5
0
 def get(self) -> core.DStr:
     return self.operate(
         core.Operation("core", "Box", core.opTuple("get", [])))
Esempio n. 6
0
 def close(self) -> core.DNone:
     return self.operate(
         core.Operation("core", "Box", core.opTuple("close", [])))
Esempio n. 7
0
 def open(self) -> core.DNone:
     return self.operate(
         core.Operation("core", "Box", core.opTuple("open", [])))
Esempio n. 8
0
 def startup(self) -> core.Operation:
     return core.Operation("core", "ND", core.opTuple("startup", None))
Esempio n. 9
0
 def send(self, package: bytes, port: int) -> core.Operation:
     return core.Operation("core", "ND",
                           core.opTuple("send", [package, port]))
Esempio n. 10
0
 def shutdown(self) -> core.Operation:
     return core.Operation("core", "ND", core.opTuple("shutdown", None))