Socket library