summaryrefslogtreecommitdiff
path: root/docker/utils/socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename read methods for clarityAanand Prasad2016-07-131-5/+6
| | | | | | | read_socket() is now just read(), because its behaviour is consistent with `os.read` et al. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Rename read_iter() to frames_iter()Aanand Prasad2016-07-131-1/+1
| | | | | | | This makes it more clearly high-level and distinct from the raw data-reading functions Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Rename next_packet_size to next_frame_sizeAanand Prasad2016-07-131-3/+3
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Reorder socket.py methodsAanand Prasad2016-07-131-13/+13
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Document all socket utility methodsAanand Prasad2016-07-131-2/+14
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* RefactorsAanand Prasad2016-07-131-14/+13
| | | | | | | | - `read_data()` raises an exception instead of asserting `False` - `next_packet_size()` uses `read_data()` - Renamed `packet_size` arg to `n` for consistency Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Move read_loop() into docker.utils.socket.read_iter()Aanand Prasad2016-07-131-0/+7
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Move socket-reading test helpers into docker.utils.socketAanand Prasad2016-07-131-0/+49
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>