Is it possible to get the host name of a TCP Connection?

前端 未结 0 725
轮回少年
轮回少年 2021-02-07 05:56

Consider this Echo TCP Server:

#!/usr/bin/env python3

import socket

HOST = \'127.0.0.1\'
PORT = 65432

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题