initialise variables for constructor

to obtain input and output streams out of the Socket connection