functions for parsing/ensabling message headers added to individual socket types

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>