What means const Socket&

I have now two days spend thinking and reseaching what means const Socket& or Socket&. especially this & character end of the name.
http://www.cplusplus.com/doc/tutorial/pointers/

To speak in very simple terms & is the same as * with the difference you mustn't dereference the object to change it's values.

const means you can't change it's values. Only const methods are allowed.
Topic archived. No new replies allowed.