Some attempt to write basic socket listener