예제 #1
0
 def send_update(self, id, code, code_msg, content=''):
     id = to_update_id(id)
     pkt = update_to_packet(id, code, code_msg, content)
     write_packet(self._connfd, pkt)
예제 #2
0
 def send_request(self, id, req):
     id = to_request_id(id)
     pkt = request_to_packet(id, req)
     write_packet(self._connfd, pkt)
예제 #3
0
파일: client.py 프로젝트: movicha/ccnet
 def send_request(self, id, req):
     id = to_request_id(id)
     pkt = request_to_packet(id, req)
     write_packet(self._connfd, pkt)
예제 #4
0
파일: client.py 프로젝트: movicha/ccnet
 def send_update(self, id, code, code_msg, content=''):
     id = to_update_id(id)
     pkt = update_to_packet(id, code, code_msg, content)
     write_packet(self._connfd, pkt)
예제 #5
0
 def send_response(self, id, code, code_msg, content=''):
     id = to_response_id(id)
     pkt = response_to_packet(id, code, code_msg, content)
     write_packet(self._connfd, pkt)
예제 #6
0
 def send_response(self, id, code, code_msg, content=''):
     id = to_response_id(id)
     pkt = response_to_packet(id, code, code_msg, content)
     write_packet(self._connfd, pkt)