Commits

Ginés Martínez Sánchez committed 16cfae6 Draft

available methods to write and flush

  • Participants
  • Parent commits 18c57ef

Comments (0)

Files changed (1)

File ginsfsm/c_sock.py

             self.will_close
 
     def mt_send_data(self, data, callback=None):
-        """ Send data.
+        """ Send data right now to the network.
         :param data: data to send.
         """
         self.mt_write(data)
         self.mt_flush(callback)
 
     def mt_write(self, data):
+        """ Write to the output buffer.
+        """
         self._write_soon(data)
 
     def mt_flush(self, callback=None):
+        """ Send output buffer data to the network
+        """
         # TODO: callback when TRANSMIT_READY
         self._transmit_ready_event_done = False
         self._send_some()