Laid the basic structure for a TCP API