Socket interface and tests
Added message parts interface