How can you tell if a guy is interested in you or just flirting?

This question is for the guys. I always wondered if there was a difference or not.

Updates:
to the people who answered, thanks :)