Stack optimization

Andrea Zoppi
Added support for send and receive timeouts

Andrea Zoppi
Minor fixes, license year updated

Andrea Zoppi