The following *extremely* simple script complains that "Socket is not
connected" when I try to call recv. Could anyone provide some quick
guidance?
From the help files:
"""
accept( )
Accept a connection. The socket must be bound to an address and
listening for connections. The return value is a pair (conn, address)
where conn is a new socket object usable to send and receive data on the
connection, and address is the address bound to the socket on the other
end of the connection.
"""
Note the phrase: "a new socket object usable to send and receive
data".
So... don't do node2.recv(), use new_socket.recv()
If you really want to receive the data using node2, then don't use
listen()/accept()
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/