Use socket->send() instead of print

- Appears to fix #5