Hello, for a project i have to make a connection between 2 raspberry pi's.
I want to use a function for connecting, reading and writing.
However I would like to know something I cannot figure out. If I accept a connection like this: client, address = socket.accept() inside a function, how can i make this client useable outside the function.
I cannot just return the client through the function because i will call the function from a html page by using webiopi.
Thanks in advance.
Last edited by stranac
on Thu May 08, 2014 2:33 pm, edited 1 time in total.
Reason: First post lock.