REQUEST: modularize packet socket