socket: reintroduce accept in the protocol and implement it properly