socket.address()


返回一个包含 socket 地址信息的对象。 对于 UDP socket,该对象将包含 addressfamilyport 属性。

Returns an object containing the address information for a socket. For UDP sockets, this object will contain address, family and port properties.