8.4.11. pymodaq_utils.mysocket module
Created the 26/10/2023
@author: Sebastien Weber
- class pymodaq_utils.mysocket.Socket(socket=None)[source]
Bases:
objectCustom Socket wrapping the built-in one and added functionalities to make sure message have been sent and received entirely
- Attributes:
- socket
Methods
check_received_length(length)Make sure all bytes (length) that should be received are received through the socket
check_sended(data_bytes)Make sure all bytes are sent through the socket :param data_bytes: :type data_bytes:
bytesget_first_nbytes(length)Read the first N bytes from the socket
accept
bind
close
connect
getsockname
listen
recv
send
sendall
- check_received_length(length)[source]
Make sure all bytes (length) that should be received are received through the socket
- check_sended(data_bytes)[source]
Make sure all bytes are sent through the socket :param data_bytes: :type data_bytes:
bytes
- property socket