Implement basic TCP listener