A magical socket library