making sure that the data sent prior to connecting the sockets is indeed sent to ondatanotsent