portable library for management socket