socket testing by TJothikumar | SimScale