socket resolve