Introducing application class 'GlobalState' for socket creation
code style