use a TCP listener in advanced example