Example #1
0
 def op(self, arg: core.DStr) -> None:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("op", [arg])
         )
     )
Example #2
0
 def query(self, arg: core.DStr) -> core.DStr:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("query", [arg])
         )
     )
Example #3
0
 def is_open(self) -> core.DBool:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("is_open", [])
         )
     )
Example #4
0
def trivialOP() -> core.Operation:
    return core.Operation("S", "D", dtyp.opTuple("OP", "ARG"))
Example #5
0
    def put(self, candy: str) -> core.DNone:
        arg = core.DStr(candy)

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