created CSocketController for an easy objective-c interface between the c socket library