Added a Write method to the Socket class

How on earth did I forget this..

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>