Writing a wrapper for a socket

Hello all,

In my project I need a class to implement the features of a socket without having to make a new instance everytime the socket gets disconnected. I hope that made sense. Anyways this is what I have so far: