I have a connected socket. When I use:
print (mySocket)
I get this:
<socket.socket fd=376, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.31.244', 4160), raddr=('192.168.31.244', 7061)>
I can also successfully print:
print (mySocket.family)
print (mySocket.proto)
But if I try to print the address:
print(mySocket.laddr)
I get and error:
AttributeError: 'socket' object has no attribute 'laddr'
How can I print the laddr and raddr attributes?