Beispiel #1
0
 def get_socket_write_timeout(self):
     return timeout.struct_to_timeout(self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_SNDTIMEO, timeout.struct_size()))
Beispiel #2
0
 def get_socket_write_timeout(self):
     return timeout.struct_to_timeout(
         self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_SNDTIMEO, 8))
Beispiel #3
0
 def get_socket_read_timeout(self):
     return timeout.struct_to_timeout(self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_RCVTIMEO, timeout.struct_size()))
Beispiel #4
0
 def get_socket_read_timeout(self):
     return timeout.struct_to_timeout(
         self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_RCVTIMEO, 8))