Added listening socket support