Commits

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

available methods to write and flush

Comments (0)

Files changed (1)

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()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.