def __init__(self): super(tcp_handler, self).__init__() self.__reader = reader.reader() self.__writer = writer.writer() self.__is_closed = False self.tcp_loop_read_num = 10 self.tcp_recv_buf_size = 2048
def __init__(self, host, ssl_on=False, is_ipv6=False): self.__sent_ok = False self.headers = [] self.__is_ipv6 = is_ipv6 self.__reader = reader.reader() self.__writer = writer.writer() self.__connect_ok = False self.__request_ok = False self.__is_http2 = False self.__alpn_on = False self.__write_ok = False self.__ssl_ok = False self.__ssl_on = ssl_on self.__host = host self.__is_closed = False
def __init__(self, host, ssl_on=False, is_ipv6=False): self.__sent_ok = False self.headers = [] self.__is_ipv6 = is_ipv6 self.__reader = reader.reader() self.__writer = writer.writer() self.__connect_ok = False self.__request_ok = False self.__is_http2 = False self.__alpn_on = False self.__write_ok = False self.__ssl_ok = False self.__ssl_on = ssl_on self.__host = host self.__is_closed = False
def __init__(self): super(tcp_handler, self).__init__() self.__reader = reader.reader() self.__writer = writer.writer()