implemented a simple tcp server that returns output from gpp