コード例 #1
0
ファイル: connection.py プロジェクト: yux0/cadence-python
 def read_frame(self):
     frame = Frame.read_frame(self.wrapper)
     if isinstance(frame, ErrorFrame):
         raise TChannelException(error_frame=frame)
     return frame
コード例 #2
0
ファイル: connection.py プロジェクト: yux0/cadence-python
 def write_frame(self, frame: Frame):
     frame.write(self.wrapper)
     self.wrapper.flush()