... as a client. After both ends of a TCP/IP socket are connected, communication is bi-directional.
pymotw.com