Updated and added a getter and setter for ReceverClass

Created a boolean flag that will help exit while loop that is running
the listen function on the socket. At the moment getting an error code
10038 => "not a socket". Will have to figure out how to send a socket
through the thread creation function.