implemented SocketListener class for handling main command interface tcp/ip socket usage