Knock Someone for Six

What does the idiom “knock someone for six” mean?

Definition: shock someone, overwhelm someone

Example: It knocked me for six when he said he had gone out with my best friend.

Note: This expression is British.