Adding basic TCP server functionality