示例#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()))
示例#2
0
 def get_socket_write_timeout(self):
     return timeout.struct_to_timeout(
         self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_SNDTIMEO,
                                timeout.struct_size()))
示例#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()))
示例#4
0
 def get_socket_read_timeout(self):
     return timeout.struct_to_timeout(
         self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_RCVTIMEO,
                                timeout.struct_size()))