Added a new method for creating TCP socket listeners and updated the web server example to use this new function