basic tcp functionality, added -p param to printcore