Send a P2P message over the socket. This method takes a P2P payload, builds the P2P header and adds the message to the send buffer to be sent over the socket.
(self, message)
| 258 | # Socket write methods |
| 259 | |
| 260 | def send_message(self, message): |
| 261 | """Send a P2P message over the socket. |
| 262 | |
| 263 | This method takes a P2P payload, builds the P2P header and adds |
| 264 | the message to the send buffer to be sent over the socket.""" |
| 265 | tmsg = self.build_message(message) |
| 266 | self._log_message("send", message) |
| 267 | return self.send_raw_message(tmsg) |
| 268 | |
| 269 | def send_raw_message(self, raw_message_bytes): |
| 270 | if not self.is_connected: |