A new function send is created to the proxy in case it is used as
an intermediate class.
Also it turns out that there is the no need for the endless while loop
for the proxy to be running permanently.